1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 10:37:59 +01:00

Finer logs in XMPPTCPConnection.shutdown()

This commit is contained in:
Florian Schmaus 2016-06-06 11:31:16 +02:00
parent 2d398b8dcf
commit 8deac592fb

View file

@ -476,8 +476,10 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
// First shutdown the writer, this will result in a closing stream element getting send to
// the server
if (packetWriter != null) {
LOGGER.finer("PacketWriter shutdown()");
packetWriter.shutdown(instant);
}
LOGGER.finer("PacketWriter has been shut down");
try {
// After we send the closing stream element, check if there was already a
@ -490,8 +492,10 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
}
if (packetReader != null) {
LOGGER.finer("PacketReader shutdown()");
packetReader.shutdown();
}
LOGGER.finer("PacketReader has been shut down");
try {
socket.close();