1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 21:42:07 +01:00

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

View file

@ -879,6 +879,8 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
(packetWriter == null || packetWriter.done())) return; (packetWriter == null || packetWriter.done())) return;
// Closes the connection temporary. A reconnection is possible // 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(); instantShutdown();
// Notify connection listeners of the error. // Notify connection listeners of the error.