1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +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:
Derek DeMoro 2006-11-15 22:33:48 +00:00 committed by derek
parent 4e0397e80a
commit aa92ee9942

View file

@ -223,12 +223,16 @@ 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();
// Make sure the error is not null
if (error != null) {
String reason = error.getCode(); String reason = error.getCode();
if ("conflict".equals(reason)) { if ("conflict".equals(reason)) {
return; return;
} }
} }
}
if (this.isReconnectionAllowed()) { if (this.isReconnectionAllowed()) {
this.reconnect(); this.reconnect();