Skip to content

Commit

Permalink
Add log line to show if we disconnected normally.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed May 1, 2019
1 parent 91e00d8 commit abb9c06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/voice_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ async def poll_voice_ws(self, reconnect):
# 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

Expand Down

0 comments on commit abb9c06

Please sign in to comment.