mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
reset reconnecting factory's internal delay
This commit is contained in:
parent
ca94d0136f
commit
8c16252a4f
1 changed files with 3 additions and 0 deletions
|
|
@ -195,6 +195,9 @@ class DiscordWebsocketServerFactory(WebSocketClientFactory, protocol.Reconnectin
|
|||
else:
|
||||
# we don't know where to reconnect to! we'll start from the beginning
|
||||
self.url = None
|
||||
# reset the internal delay, since this is a deliberate disconnect
|
||||
self.delay = self.initialDelay
|
||||
# disconnect to allow the reconnection process to kick in
|
||||
self.bot.sendClose()
|
||||
self.sessionhandler.server_disconnect(self.bot)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue