mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
Call _client_disconnected
method immediately when close()
is called
This commit is contained in:
parent
85726627b1
commit
82a3753d0d
@ -87,6 +87,8 @@ class Spheniscidae:
|
||||
async def close(self):
|
||||
self.__writer.close()
|
||||
|
||||
await self._client_disconnected()
|
||||
|
||||
async def __handle_xt_data(self, data):
|
||||
self.logger.debug(f'Received XT data: {data}')
|
||||
parsed_data = data.split('%')[1:-1]
|
||||
@ -186,6 +188,7 @@ class Spheniscidae:
|
||||
except BaseException as e:
|
||||
self.logger.exception(e.__traceback__)
|
||||
|
||||
if self.peer_name in self.server.peers_by_ip:
|
||||
await self._client_disconnected()
|
||||
|
||||
def __repr__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user