aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py2
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 = {