mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #3094 from InspectorCaracal/discord-sessions-patch
Fix zombie Discord sessions
This commit is contained in:
commit
0938bf45fd
1 changed files with 1 additions and 1 deletions
|
|
@ -323,6 +323,7 @@ class DiscordClient(WebSocketClientProtocol, _BASE_SESSION_CLASS):
|
|||
reason (str or None): Close reason as sent by the WebSocket peer.
|
||||
|
||||
"""
|
||||
self.sessionhandler.disconnect(self)
|
||||
if self.nextHeartbeatCall:
|
||||
self.nextHeartbeatCall.cancel()
|
||||
self.nextHeartbeatCall = None
|
||||
|
|
@ -424,7 +425,6 @@ class DiscordClient(WebSocketClientProtocol, _BASE_SESSION_CLASS):
|
|||
reason (str or None): Motivation for the disconnection.
|
||||
|
||||
"""
|
||||
self.sessionhandler.disconnect(self)
|
||||
self.sendClose(self.CLOSE_STATUS_CODE_NORMAL, reason)
|
||||
|
||||
def identify(self, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue