diff options
-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 |