mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-25 03:57:58 +01:00
[tcp] Report SM resumption impossible if not instant shutdown
If the connection got not instantanously shut down, then we also dropped all SM state and should not report that SM resumption is possible. This most likely fixes SMACK-954.x
This commit is contained in:
parent
6e6a3ef88d
commit
0191ed7174
1 changed files with 4 additions and 0 deletions
|
@ -1798,6 +1798,10 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
|||
if (smSessionId == null)
|
||||
return false;
|
||||
|
||||
// If we are not in instant shutdown, i.e., a shutdown which leaves the connection in a resumable state, then SM resumption is not possible.
|
||||
if (!packetWriter.instantShutdown)
|
||||
return false;
|
||||
|
||||
final Long shutdownTimestamp = packetWriter.shutdownTimestamp;
|
||||
// Seems like we are already reconnected, report true
|
||||
if (shutdownTimestamp == null) {
|
||||
|
|
Loading…
Reference in a new issue