aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-05-10 21:04:27 +0200
committerChristian Schneppe <christian@pix-art.de>2017-05-10 21:04:27 +0200
commitc8cd71682584dba0f59f81f612e47640ead53515 (patch)
tree7132ca9e15a174ec48225eaa4cef818080147bb9 /src/main/java
parent16d1dacf662d2a509363ae1cea8e042a285c6f10 (diff)
reset resource after bind failure
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/xmpp/XmppConnection.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
index df690368b..28dddd961 100644
--- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
+++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
@@ -1058,6 +1058,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);
}
});