diff --git a/lcu_driver/connection.py b/lcu_driver/connection.py index 0cc4de9..a5a0b37 100644 --- a/lcu_driver/connection.py +++ b/lcu_driver/connection.py @@ -78,8 +78,8 @@ async def init(self): async def _close(self): self.closed = True - await self._connector.run_event('close', self) self._connector.unregister_connection(self._lcu_pid) + await self._connector.run_event('close', self) await self.session.close() @property