catch brokenPipe error
This commit is contained in:
parent
96e76fca4c
commit
d3b4a4b8b4
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ class Dispatcher:
|
|||
except (asyncio.TimeoutError, TimeoutError):
|
||||
self._logger.error("Connection timed out")
|
||||
await self.disconnect(block=False)
|
||||
except ConnectionResetError:
|
||||
except (ConnectionResetError, BrokenPipeError):
|
||||
self._logger.error("Connection reset while reading packet")
|
||||
await self.disconnect(block=False)
|
||||
except (asyncio.IncompleteReadError, EOFError):
|
||||
|
|
Loading…
Reference in a new issue