diff options
| author | Rapptz <[email protected]> | 2015-12-12 10:30:56 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-12 10:30:56 -0500 |
| commit | b5a40b545ec6ff1b56d046ab094262bf281f08b1 (patch) | |
| tree | f3f395c3a0547ecc101052a18ad987ba15dbe10b | |
| parent | logs_from now works again with limit > 100. (diff) | |
| download | discord.py-b5a40b545ec6ff1b56d046ab094262bf281f08b1.tar.xz discord.py-b5a40b545ec6ff1b56d046ab094262bf281f08b1.zip | |
Websocket now uses the event loop passed in.
| -rw-r--r-- | discord/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py index 5f0a8495..bc788ea3 100644 --- a/discord/client.py +++ b/discord/client.py @@ -298,7 +298,7 @@ class Client: raise ClientException('You must be logged in to connect') self.gateway = yield from self._get_gateway() - self.ws = yield from websockets.connect(self.gateway) + self.ws = yield from websockets.connect(self.gateway, loop=self.loop) self.ws.max_size = None log.info('Created websocket connected to {0.gateway}'.format(self)) payload = { |