disconnect on unhandled exception in dispatcher

This commit is contained in:
əlemi 2021-12-06 19:34:43 +01:00
parent 730965e22c
commit b5c3bfeb6c

View file

@ -237,6 +237,7 @@ class Dispatcher:
await self.disconnect(block=False)
except Exception:
self._logger.exception("Exception parsing packet %d | %s", packet_id, buffer.getvalue())
await self.disconnect(block=False)
async def _up_worker(self, timeout=1):
while self._dispatching: