From 22baa742983f1f3e7f6a941b7c26de7a1463c291 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 31 May 2020 13:37:58 +0200 Subject: [PATCH] [tcp] Remove flush() in writer thread We will flush the stream after the closing stream tag has been written anyway. No need to do it here. --- .../main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 1 - 1 file changed, 1 deletion(-) 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 dce23f149..215c8dabb 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 @@ -1332,7 +1332,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { } writer.write(packet.toXML().toString()); } - writer.flush(); } catch (Exception e) { LOGGER.log(Level.WARNING,