mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-24 21:12:05 +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;
|
disconnectedButResumeable = true;
|
||||||
} else {
|
} else {
|
||||||
disconnectedButResumeable = false;
|
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;
|
authenticated = false;
|
||||||
connected = false;
|
connected = false;
|
||||||
|
@ -520,9 +523,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
||||||
reader = null;
|
reader = null;
|
||||||
writer = 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();
|
maybeCompressFeaturesReceived.init();
|
||||||
compressSyncPoint.init();
|
compressSyncPoint.init();
|
||||||
smResumedSyncPoint.init();
|
smResumedSyncPoint.init();
|
||||||
|
|
Loading…
Reference in a new issue