diff options
author | lovetox <philipp@hoerist.com> | 2020-03-25 00:30:51 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-25 00:30:51 +0300 |
commit | a2804302c4c4a64db5237afae9a7eb62b1d08896 (patch) | |
tree | 27d5e922bc11c0efd123be58d65a4059a928826a /nbxmpp | |
parent | 979831bf1283ccb9489e02ba93f204c6001cc31f (diff) |
Client: Handle server not ending stream gracefully
Diffstat (limited to 'nbxmpp')
-rw-r--r-- | nbxmpp/tcp.py | 4 |
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 |