aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/discord/client.py b/discord/client.py
index c8a81d33..fc03400b 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -429,15 +429,13 @@ class Client:
self._closed.set()
- for voice in list(self.voice_clients):
+ for voice in self.voice_clients:
try:
yield from voice.disconnect()
except:
# if an error happens during disconnects, disregard it.
pass
- self.connection._remove_voice_client(voice.guild.id)
-
if self.ws is not None and self.ws.open:
yield from self.ws.close()