1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +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 // First shutdown the writer, this will result in a closing stream element getting send to
// the server // the server
if (packetWriter != null) { if (packetWriter != null) {
LOGGER.finer("PacketWriter shutdown()");
packetWriter.shutdown(instant); packetWriter.shutdown(instant);
} }
LOGGER.finer("PacketWriter has been shut down");
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
@ -490,8 +492,10 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
} }
if (packetReader != null) { if (packetReader != null) {
LOGGER.finer("PacketReader shutdown()");
packetReader.shutdown(); packetReader.shutdown();
} }
LOGGER.finer("PacketReader has been shut down");
try { try {
socket.close(); socket.close();