Commit 7fca9538 authored by Philipp Hörist's avatar Philipp Hörist

TCP: Disconnect on all not handled read errors

parent 3e5e6efc
......@@ -214,6 +214,10 @@ class TCPConnection(Connection):
return
self._log.error('Read Error: %s', error)
if self._state not in (TCPState.DISCONNECTING,
TCPState.DISCONNECTED):
self._finalize('disconnected')
return
data = data.get_data()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment