|
@ -421,6 +421,11 @@ class VoiceClient(VoiceProtocol): |
|
|
|
|
|
|
|
|
self.finish_handshake() |
|
|
self.finish_handshake() |
|
|
self._potentially_reconnecting = False |
|
|
self._potentially_reconnecting = False |
|
|
|
|
|
|
|
|
|
|
|
if self.ws: |
|
|
|
|
|
_log.debug("Closing existing voice websocket") |
|
|
|
|
|
await self.ws.close() |
|
|
|
|
|
|
|
|
try: |
|
|
try: |
|
|
self.ws = await self.connect_websocket() |
|
|
self.ws = await self.connect_websocket() |
|
|
except (ConnectionClosed, asyncio.TimeoutError): |
|
|
except (ConnectionClosed, asyncio.TimeoutError): |
|
|