fix state manager removal

This commit is contained in:
slice 2018-07-21 09:35:55 -07:00
parent 681e35db5a
commit bc9d1e8908
No known key found for this signature in database
GPG Key ID: 1508C19D7436A26D
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ class GatewayWebsocket:
log.exception('An exception has occoured. state={}', self.state) log.exception('An exception has occoured. state={}', self.state)
await self.ws.close(code=4000, reason=repr(err)) await self.ws.close(code=4000, reason=repr(err))
finally: finally:
self.ext.state_manager.remove(self) self.ext.state_manager.remove(self.state)
if self.state: if self.state:
self.state.ws = None self.state.ws = None