Update voice client main ws references when reconnecting.

This commit is contained in:
Rapptz committed 2016-06-01 05:20:22 -04:00
1 parent e0a91df32b
commit 8638ff4414
2 files changed
+6

No files matched your search

+2
View File
@@ -199,6 +199,8 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
ws._dispatch = client.dispatch
ws.gateway = gateway
client.connection._update_references(ws)
log.info('Created websocket connected to {}'.format(gateway))
if not resume:
yield from ws.identify()