1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Reset smSessionId on XMPPTCPConnection.disconnect()

This commit is contained in:
Florian Schmaus 2015-02-08 14:10:47 +01:00
parent a0cf121d7a
commit 1630b44b8d

View file

@ -482,6 +482,10 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
usingTLS = false;
reader = null;
writer = null;
// Reset the stream management session id to null, since if the stream is cleanly closed, i.e. sending a closing
// stream tag, there is no longer a stream to resume.
smSessionId = null;
maybeCompressFeaturesReceived.init();
compressSyncPoint.init();
smResumedSyncPoint.init();