Add comment about dropping SM state on stream errors.

Related to SMACK-696.
This commit is contained in:
Florian Schmaus 2016-06-11 16:31:39 +02:00
parent 08c93da56a
commit 30861fb7ce
1 changed files with 2 additions and 0 deletions

View File

@ -879,6 +879,8 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
(packetWriter == null || packetWriter.done())) return;
// Closes the connection temporary. A reconnection is possible
// Note that a connection listener of XMPPTCPConnection will drop the SM state in
// case the Exception is a StreamErrorException.
instantShutdown();
// Notify connection listeners of the error.