Skip to content

Commit dbe40a6

Browse files
committed
Revert
1 parent 608d748 commit dbe40a6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/src/main/java/ua/naiksoftware/stomp/WebSocketsConnectionProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public Observable<String> messages() {
6262
}
6363

6464
if (mMessagesSubscribers.size() < 1) {
65-
Log.d(TAG, "Close web socket connection now in thread " + Thread.currentThread() + " in main loop? " + (Looper.getMainLooper() == Looper.myLooper()));
65+
Log.d(TAG, "Close web socket connection now in thread " + Thread.currentThread());
6666
mWebSocketClient.close();
6767
}
6868
});

lib/src/main/java/ua/naiksoftware/stomp/client/StompClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ public void connect(List<StompHeader> _headers, boolean reconnect) {
9696

9797
isConnecting = true;
9898
mMessagesSubscription = mConnectionProvider.messages()
99-
.unsubscribeOn(Schedulers.io())
10099
.map(StompMessage::from)
101100
.subscribe(stompMessage -> {
102101
if (stompMessage.getStompCommand().equals(StompCommand.CONNECTED)) {

0 commit comments

Comments
 (0)