1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Do not wait for the closing stream element on instant shutdown

This commit is contained in:
Florian Schmaus 2017-01-03 11:44:44 +01:00
parent 90a5e289f8
commit a8429d45f6

View file

@ -484,6 +484,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
} }
LOGGER.finer("PacketWriter has been shut down"); LOGGER.finer("PacketWriter has been shut down");
if (!instant) {
try { try {
// After we send the closing stream element, check if there was already a // After we send the closing stream element, check if there was already a
// closing stream element sent by the server or wait with a timeout for a // closing stream element sent by the server or wait with a timeout for a
@ -493,6 +494,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
} catch (InterruptedException | NoResponseException e) { } catch (InterruptedException | NoResponseException e) {
LOGGER.log(Level.INFO, "Exception while waiting for closing stream element from the server " + this, e); LOGGER.log(Level.INFO, "Exception while waiting for closing stream element from the server " + this, e);
} }
}
if (packetReader != null) { if (packetReader != null) {
LOGGER.finer("PacketReader shutdown()"); LOGGER.finer("PacketReader shutdown()");