Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-04-07 23:39:39 +0300
committerlovetox <philipp@hoerist.com>2020-04-07 23:39:39 +0300
commit7ba2e6af91e170c6539e1f0f7c039870a82d5c3f (patch)
tree7421a9ac7804977a8534ac65b06fc75f6a1b22ff
parent89bbf64c2b9553b502271b6302099b22f3f2f4ff (diff)
TCP: Check write queue after sending keepalive
-rw-r--r--nbxmpp/tcp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nbxmpp/tcp.py b/nbxmpp/tcp.py
index 637effe..9668a0a 100644
--- a/nbxmpp/tcp.py
+++ b/nbxmpp/tcp.py
@@ -285,6 +285,8 @@ class TCPConnection(Connection):
data = data.decode()
if data == ' ':
# keepalive whitespace
+ if self._write_queue:
+ self._write_stanzas()
return
for stanza in self._write_stanza_buffer: