diff options
| author | Rapptz <[email protected]> | 2016-08-25 17:09:34 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-08-25 17:09:34 -0400 |
| commit | a23e51f6c41f6462e1c9effe5b5a3334d47f0c38 (patch) | |
| tree | a15a32e69f3523a0e847017328cc2041c1c1573c | |
| parent | Ensure that keep alive threads are closed when a websocket closes. (diff) | |
| download | discord.py-a23e51f6c41f6462e1c9effe5b5a3334d47f0c38.tar.xz discord.py-a23e51f6c41f6462e1c9effe5b5a3334d47f0c38.zip | |
Fix gateway code to work with websockets 3.2.
| -rw-r--r-- | discord/gateway.py | 3 |
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 |