disconnect on unhandled exception in dispatcher
This commit is contained in:
parent
730965e22c
commit
b5c3bfeb6c
1 changed files with 1 additions and 0 deletions
|
@ -237,6 +237,7 @@ class Dispatcher:
|
||||||
await self.disconnect(block=False)
|
await self.disconnect(block=False)
|
||||||
except Exception:
|
except Exception:
|
||||||
self._logger.exception("Exception parsing packet %d | %s", packet_id, buffer.getvalue())
|
self._logger.exception("Exception parsing packet %d | %s", packet_id, buffer.getvalue())
|
||||||
|
await self.disconnect(block=False)
|
||||||
|
|
||||||
async def _up_worker(self, timeout=1):
|
async def _up_worker(self, timeout=1):
|
||||||
while self._dispatching:
|
while self._dispatching:
|
||||||
|
|
Loading…
Reference in a new issue