aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-11-21 22:47:04 -0500
committerRapptz <[email protected]>2020-11-21 22:47:04 -0500
commitb76b5b42c03ca09789e24d69fc43f01f75637b5c (patch)
tree43f51cb3e17418844b79e4f0972b560279791134
parentFix error with templates not having access to member cache flags. (diff)
downloaddiscord.py-b76b5b42c03ca09789e24d69fc43f01f75637b5c.tar.xz
discord.py-b76b5b42c03ca09789e24d69fc43f01f75637b5c.zip
Fix attribute error during rapid disconnects in VoiceClient.
Fix #6039
-rw-r--r--discord/voice_client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py
index 52c88109..c97cbabb 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -220,6 +220,7 @@ class VoiceClient(VoiceProtocol):
self._player = None
self.encoder = None
self._lite_nonce = 0
+ self.ws = None
warn_nacl = not has_nacl
supported_modes = (