diff options
author | lovetox <philipp@hoerist.com> | 2020-04-07 23:39:39 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-04-07 23:39:39 +0300 |
commit | 7ba2e6af91e170c6539e1f0f7c039870a82d5c3f (patch) | |
tree | 7421a9ac7804977a8534ac65b06fc75f6a1b22ff | |
parent | 89bbf64c2b9553b502271b6302099b22f3f2f4ff (diff) |
TCP: Check write queue after sending keepalive
-rw-r--r-- | nbxmpp/tcp.py | 2 |
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: |