diff --git a/setup.py b/setup.py index f05b26d..d231587 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ PACKAGE_NAME = 'ucapi' HERE = path.abspath(path.dirname(__file__)) -VERSION = '0.0.9' +VERSION = '0.0.10' with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: long_description = f.read() diff --git a/ucapi/api.py b/ucapi/api.py index d33727a..33df3e9 100644 --- a/ucapi/api.py +++ b/ucapi/api.py @@ -158,6 +158,7 @@ async def _handleWs(self, websocket): finally: self._clients.remove(websocket) LOG.info("WS: Client removed") + self.events.emit(uc.EVENTS.DISCONNECT) async def _sendOkResult(self, websocket, id, msgData={}): await self._sendResponse(websocket, id, "result", msgData, 200)