mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 12:07:17 +02:00
reset reconnecting factory's internal delay
This commit is contained in:
parent
8a97051218
commit
f204535baf
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