oof I really need to implement all types...

This commit is contained in:
əlemi 2021-11-22 00:00:23 +01:00
parent f513801132
commit 163ab47f80

View file

@ -219,6 +219,8 @@ class Dispatcher:
await self._incoming.put(packet) await self._incoming.put(packet)
if self.state != ConnectionState.PLAY: if self.state != ConnectionState.PLAY:
await self._incoming.join() # During play we can pre-process packets await self._incoming.join() # During play we can pre-process packets
except AttributeError:
self._logger.warning("Received unimplemented packet [%d] %d", packet_id, cls.__name__)
except ConnectionResetError: except ConnectionResetError:
self._logger.error("Connection reset while reading packet") self._logger.error("Connection reset while reading packet")
await self.disconnect(block=False) await self.disconnect(block=False)