Clean cache when TimeoutError occurs.
This commit is contained in:
parent
f9c2ac9d25
commit
aa32c384ea
@ -144,7 +144,7 @@ class VoiceClient:
|
|||||||
try:
|
try:
|
||||||
yield from asyncio.wait_for(self._handshake_complete.wait(), timeout=self.timeout, loop=self.loop)
|
yield from asyncio.wait_for(self._handshake_complete.wait(), timeout=self.timeout, loop=self.loop)
|
||||||
except asyncio.TimeoutError as e:
|
except asyncio.TimeoutError as e:
|
||||||
yield from ws.voice_state(guild_id, None, self_mute=True)
|
yield from self.terminate_handshake(remove=True)
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
log.info('Voice handshake complete. Endpoint found %s (IP: %s)', self.endpoint, self.endpoint_ip)
|
log.info('Voice handshake complete. Endpoint found %s (IP: %s)', self.endpoint, self.endpoint_ip)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user