diff --git a/discord/client.py b/discord/client.py index 5f0a84958..bc788ea35 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 = {