mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Minor update to reconnection logic.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6123 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
4e0397e80a
commit
aa92ee9942
1 changed files with 7 additions and 3 deletions
|
@ -223,10 +223,14 @@ public class ReconnectionManager implements ConnectionListener {
|
||||||
if (e instanceof XMPPException) {
|
if (e instanceof XMPPException) {
|
||||||
XMPPException xmppEx = (XMPPException) e;
|
XMPPException xmppEx = (XMPPException) e;
|
||||||
StreamError error = xmppEx.getStreamError();
|
StreamError error = xmppEx.getStreamError();
|
||||||
String reason = error.getCode();
|
|
||||||
|
|
||||||
if ("conflict".equals(reason)) {
|
// Make sure the error is not null
|
||||||
return;
|
if (error != null) {
|
||||||
|
String reason = error.getCode();
|
||||||
|
|
||||||
|
if ("conflict".equals(reason)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue