Skip to content

Commit

Permalink
re-create XMPPConnection after manual disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rg committed Mar 26, 2014
1 parent 1def3fc commit 21ae050
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/org/yaxim/androidclient/service/SmackableImp.java
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ public void run() {
mXMPPConnection.shutdown();
mStreamHandler.close();
mAlarmManager.cancel(mPongTimeoutAlarmPendIntent);
// we should reset XMPPConnection the next time
mConfig.reconnect_required = true;
finishConnectingThread();
// reconnect if it was requested in the meantime
if (mRequestedState == ConnectionState.ONLINE)
Expand Down

0 comments on commit 21ae050

Please sign in to comment.