Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
NaikSoftware committed Apr 5, 2017
1 parent 608d748 commit dbe40a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Observable<String> messages() {
}

if (mMessagesSubscribers.size() < 1) {
Log.d(TAG, "Close web socket connection now in thread " + Thread.currentThread() + " in main loop? " + (Looper.getMainLooper() == Looper.myLooper()));
Log.d(TAG, "Close web socket connection now in thread " + Thread.currentThread());
mWebSocketClient.close();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public void connect(List<StompHeader> _headers, boolean reconnect) {

isConnecting = true;
mMessagesSubscription = mConnectionProvider.messages()
.unsubscribeOn(Schedulers.io())
.map(StompMessage::from)
.subscribe(stompMessage -> {
if (stompMessage.getStompCommand().equals(StompCommand.CONNECTED)) {
Expand Down

0 comments on commit dbe40a6

Please sign in to comment.