fix excessive Discord reconnects
This commit is contained in:
parent
250c47c84c
commit
eabfede7ec
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ class DiscordWebsocketServerFactory(WebSocketClientFactory, protocol.Reconnectin
|
||||||
reason (str): The reason for the failure.
|
reason (str): The reason for the failure.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if self.do_retry or not self.bot:
|
if self.do_retry and self.bot:
|
||||||
self.retry(connector)
|
self.retry(connector)
|
||||||
|
|
||||||
def reconnect(self):
|
def reconnect(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue