From 72972dad820420dac10a55c6315e5f54a4656a56 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 12 Jun 2015 12:30:36 +0200 Subject: [PATCH] Log when server sends closing stream element --- .../java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java index ffabe5989..969be7033 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java @@ -1112,6 +1112,9 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { // sending a closing stream element first. This means that the // server wants to terminate the session, therefore disconnect // the connection + LOGGER.info(XMPPTCPConnection.this + + " received closing element." + + " Server wants to terminate the connection, calling disconnect()"); disconnect(); } }