1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-04 15:45:58 +01:00

Drop stream management state on StreamManagementException

This commit is contained in:
Dmitry Deshevoy 2017-11-16 16:18:15 +03:00
parent 0da3ebf385
commit 4f11dc5b14

View file

@ -310,7 +310,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
addConnectionListener(new AbstractConnectionListener() { addConnectionListener(new AbstractConnectionListener() {
@Override @Override
public void connectionClosedOnError(Exception e) { public void connectionClosedOnError(Exception e) {
if (e instanceof XMPPException.StreamErrorException) { if (e instanceof XMPPException.StreamErrorException || e instanceof StreamManagementException) {
dropSmState(); dropSmState();
} }
} }