Skip to content

Commit

Permalink
drafts reconnecting rsocket
Browse files Browse the repository at this point in the history
Signed-off-by: Oleh Dokuka <[email protected]>
  • Loading branch information
OlegDokuka committed Mar 2, 2020
1 parent 10456c2 commit 321895f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ public void onComplete() {
if (value == null) {
reconnect();
} else {
value.onClose().subscribe(null, null, () -> resubscribeWhen(ON_CLOSE_EXCEPTION));
Consumer<RSocket>[] array = SUBSCRIBERS.getAndSet(this, TERMINATED);
value.onClose().subscribe(null, null, () -> resubscribeWhen(ON_CLOSE_EXCEPTION));
for (Consumer<? super RSocket> as : array) {
as.accept(value);
}
Expand Down

0 comments on commit 321895f

Please sign in to comment.