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-03-25 00:30:51 +0300
committerlovetox <philipp@hoerist.com>2020-03-25 00:30:51 +0300
commita2804302c4c4a64db5237afae9a7eb62b1d08896 (patch)
tree27d5e922bc11c0efd123be58d65a4059a928826a
parent979831bf1283ccb9489e02ba93f204c6001cc31f (diff)
Client: Handle server not ending stream gracefully
-rw-r--r--nbxmpp/tcp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nbxmpp/tcp.py b/nbxmpp/tcp.py
index 802654f..be00732 100644
--- a/nbxmpp/tcp.py
+++ b/nbxmpp/tcp.py
@@ -269,6 +269,10 @@ class TCPConnection(Connection):
self._write_stanza_buffer = None
return
+ if self._output_closed:
+ self._check_for_shutdown()
+ return
+
self._log.error('Write Error: %s', error)
return