Skip to content

Commit

Permalink
Disconnect emitter should be called even if user disconnects already …
Browse files Browse the repository at this point in the history
…closed websocket
  • Loading branch information
eschava committed Oct 28, 2022
1 parent 037c121 commit ce7ceaf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ public Completable disconnect() {
.addListener(
f -> {
connectionStateModel.setState(State.CLOSED);
disconnectEmitters.onNext(new Object());
completable.onComplete();
});
} else {
Expand Down

0 comments on commit ce7ceaf

Please sign in to comment.