Skip to content

Commit b1d8caa

Browse files
committed
drafts reconnecting rsocket
Signed-off-by: Oleh Dokuka <[email protected]>
1 parent 91c3254 commit b1d8caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rsocket-core/src/main/java/io/rsocket/util/ReconnectingRSocket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ public void onComplete() {
9999
if (value == null) {
100100
reconnect();
101101
} else {
102-
value.onClose().subscribe(null, null, () -> resubscribeWhen(ON_CLOSE_EXCEPTION));
103102
Consumer<RSocket>[] array = SUBSCRIBERS.getAndSet(this, TERMINATED);
103+
value.onClose().subscribe(null, null, () -> resubscribeWhen(ON_CLOSE_EXCEPTION));
104104
for (Consumer<? super RSocket> as : array) {
105105
as.accept(value);
106106
}

0 commit comments

Comments
 (0)