Only reset smSessionId if the stream is no longer resumeable

This commit is contained in:
Florian Schmaus 2015-03-10 13:17:18 +01:00
parent 16cafd0094
commit 92c76d1023
1 changed files with 3 additions and 3 deletions

View File

@ -513,6 +513,9 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
disconnectedButResumeable = true;
} else {
disconnectedButResumeable = false;
// 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;
}
authenticated = false;
connected = false;
@ -520,9 +523,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
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();