aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-01 05:20:22 -0400
committerRapptz <[email protected]>2016-06-01 05:20:22 -0400
commit8638ff44142219e45c565e2b4871a7471b403297 (patch)
tree0552d65a8709e088ba6d19c46909d693b9531bd5 /discord/state.py
parentAdd RESUME support. (diff)
downloaddiscord.py-8638ff44142219e45c565e2b4871a7471b403297.tar.xz
discord.py-8638ff44142219e45c565e2b4871a7471b403297.zip
Update voice client main ws references when reconnecting.
Diffstat (limited to 'discord/state.py')
-rw-r--r--discord/state.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/state.py b/discord/state.py
index 634a2749..268af188 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -107,6 +107,10 @@ class ConnectionState:
def _remove_voice_client(self, guild_id):
self._voice_clients.pop(guild_id, None)
+ def _update_references(self, ws):
+ for vc in self.voice_clients:
+ vc.main_ws = ws
+
@property
def servers(self):
return self._servers.values()