Merge pull request #3018 from InspectorCaracal/patch-2

Fix for the excessive Discord reconnects
This commit is contained in:
Griatch 2022-12-04 10:45:47 +01:00 committed by GitHub
commit c829ba7be5

View file

@ -201,7 +201,7 @@ class DiscordWebsocketServerFactory(WebSocketClientFactory, protocol.Reconnectin
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)
def reconnect(self):