Remove double-relationship between state and WS

This commit is contained in:
Luna 2020-04-05 14:46:30 -03:00
parent 6a45da01b8
commit 5b0f4f01d8
1 changed files with 2 additions and 3 deletions

View File

@ -1092,10 +1092,9 @@ class GatewayWebsocket:
task.cancel() task.cancel()
if self.state: if self.state:
self.state.ws = None
self.app.state_manager.schedule_deletion(self.state) self.app.state_manager.schedule_deletion(self.state)
# self.app.state_manager.remove(self.state) self.state = None
# self.state.ws = None
# self.state = None
async def _check_conns(self, user_id): async def _check_conns(self, user_id):
"""Check if there are any existing connections. """Check if there are any existing connections.