aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-08-25 17:09:34 -0400
committerRapptz <[email protected]>2016-08-25 17:09:34 -0400
commita23e51f6c41f6462e1c9effe5b5a3334d47f0c38 (patch)
treea15a32e69f3523a0e847017328cc2041c1c1573c
parentEnsure that keep alive threads are closed when a websocket closes. (diff)
downloaddiscord.py-a23e51f6c41f6462e1c9effe5b5a3334d47f0c38.tar.xz
discord.py-a23e51f6c41f6462e1c9effe5b5a3334d47f0c38.zip
Fix gateway code to work with websockets 3.2.
-rw-r--r--discord/gateway.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index 68016cbe..9868f956 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -155,7 +155,8 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
GUILD_SYNC = 12
def __init__(self, *args, **kwargs):
- super().__init__(*args, max_size=None, **kwargs)
+ super().__init__(*args, **kwargs)
+ self.max_size = None
# an empty dispatcher to prevent crashes
self._dispatch = lambda *args: None
# generic event listeners