Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
disable reconnectionmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
iamironrabbit committed Jun 1, 2018
1 parent 37d0175 commit 68994d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ public void joinChatGroupAsync(Address address, String reason) {

try {

if (mConnection == null || (!mConnection.isConnected()))
if (mConnection == null || (!mConnection.isAuthenticated()))
return;

mBookmarkManager.addBookmarkedConference(address.getUser(),JidCreate.entityBareFrom(chatRoomJid),true,null,null);
Expand Down Expand Up @@ -4081,7 +4081,7 @@ public void reconnectionFailed(Exception e) {
debug(TAG,"Reconnection failed",e);
}
});
mReconnectionManager.enableAutomaticReconnection();
mReconnectionManager.disableAutomaticReconnection();


try {
Expand Down

0 comments on commit 68994d9

Please sign in to comment.