mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-10-31 17:25:58 +01:00
Merge pull request #184 from mityada/stream-management-exception
Drop stream management state on StreamManagementException
This commit is contained in:
commit
813a5ba63f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue