mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-10 18:15:58 +01:00
Only reset smSessionId if the stream is no longer resumeable
This commit is contained in:
parent
16cafd0094
commit
92c76d1023
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue