We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c3d7ff commit 4b392f3Copy full SHA for 4b392f3
lib/src/main/java/ua/naiksoftware/stomp/OkHttpConnectionProvider.java
@@ -47,7 +47,7 @@ public void rawDisconnect() {
47
if (openedSocked != null) {
48
openedSocked.close(1000, "");
49
if (currentListener != null)
50
- currentListener.getCompletable().blockingAwait();
+ currentListener.awaitCloseBlocking();
51
}
52
53
@@ -144,8 +144,8 @@ public void subscribe(CompletableEmitter emitter) {
144
mEmitters.add(emitter);
145
146
147
- private Completable getCompletable(){
148
- return mCompletable;
+ private void awaitCloseBlocking(){
+ mCompletable.blockingAwait();
149
150
151
private void launchCloseEvent(){
0 commit comments