reset resource after bind failure

This commit is contained in:
Daniel Gultsch 2017-05-05 09:38:58 +02:00
parent 7b6d49f329
commit be371ac5df
1 changed files with 1 additions and 0 deletions

View File

@ -1032,6 +1032,7 @@ public class XmppConnection implements Runnable {
} else { } else {
Log.d(Config.LOGTAG, account.getJid() + ": disconnecting because of bind failure (" + packet.toString()); Log.d(Config.LOGTAG, account.getJid() + ": disconnecting because of bind failure (" + packet.toString());
} }
account.setResource(account.getResource().split("\\.")[0]);
throw new StateChangingError(Account.State.BIND_FAILURE); throw new StateChangingError(Account.State.BIND_FAILURE);
} }
}); });