mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 16:51:59 +00:00
Add log line to show if we disconnected normally.
This commit is contained in:
parent
91e00d8426
commit
abb9c067cc
@ -247,6 +247,7 @@ class VoiceClient:
|
||||
# 4014 - voice channel has been deleted.
|
||||
# 4015 - voice server has crashed
|
||||
if exc.code in (1000, 4014, 4015):
|
||||
log.info('Disconnecting from voice normally, close code %d.', exc.code)
|
||||
await self.disconnect()
|
||||
break
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user