From be371ac5df4536831677fcf58e4fc5e990e341d3 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 5 May 2017 09:38:58 +0200 Subject: [PATCH] reset resource after bind failure --- src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java index d35d3abc0..c70c9324e 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java @@ -1032,6 +1032,7 @@ public class XmppConnection implements Runnable { } else { 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); } });