mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 10:49:24 +00:00
Websocket now uses the event loop passed in.
This commit is contained in:
parent
b5c57fc399
commit
b5a40b545e
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user