From 4f11dc5b14ebe9b686a4c23a8b1d1fc9cc3c82a7 Mon Sep 17 00:00:00 2001 From: Dmitry Deshevoy Date: Thu, 16 Nov 2017 16:18:15 +0300 Subject: [PATCH] Drop stream management state on StreamManagementException --- .../main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java index c604dc675..a811da759 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java @@ -310,7 +310,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { addConnectionListener(new AbstractConnectionListener() { @Override public void connectionClosedOnError(Exception e) { - if (e instanceof XMPPException.StreamErrorException) { + if (e instanceof XMPPException.StreamErrorException || e instanceof StreamManagementException) { dropSmState(); } }