Browse Source

Fix gateway code to work with websockets 3.2.

pull/297/merge
Rapptz 9 years ago
parent
commit
a23e51f6c4
  1. 3
      discord/gateway.py

3
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

Loading…
Cancel
Save