Skip to content

Commit

Permalink
Merge pull request #4605 from inforeachinc/netty_leaking_threads
Browse files Browse the repository at this point in the history
Disconnect emitter should be called even if user disconnects already closed websocket
  • Loading branch information
timmolter authored Dec 24, 2022
2 parents 49efa73 + ce7ceaf commit f7b4929
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 f7b4929

Please sign in to comment.