From 08fc0ba0b4ecb33e882a9f3c722f5425e8772f0d Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 20 Sep 2020 13:06:02 +0200 Subject: [PATCH] [tcp] Improve pendingWriteInterestAfterRead code comment --- .../org/jivesoftware/smack/tcp/XmppTcpTransportModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XmppTcpTransportModule.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XmppTcpTransportModule.java index 965ddb192..c944d5440 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XmppTcpTransportModule.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XmppTcpTransportModule.java @@ -498,9 +498,9 @@ public class XmppTcpTransportModule extends ModularXmppClientToServerConnectionM pendingInputFilterData = false; } - // We have successfully read something. It is now possible that a filter is now also able to write - // additional data (for example SSLEngine). if (pendingWriteInterestAfterRead) { + // We have successfully read something and someone announced a write interest after a read. It is + // now possible that a filter is now also able to write additional data (for example SSLEngine). pendingWriteInterestAfterRead = false; newInterestedOps |= SelectionKey.OP_WRITE; }