Skip to content

Commit

Permalink
Fix connection error being thrown on leaving voice (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyWX authored and arqunis committed Feb 26, 2019
1 parent e943881 commit 62a1aa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/voice/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ impl Handler {
// Only send an update if we were in a voice channel.
if self.channel_id.is_some() {
self.channel_id = None;
self.send(VoiceStatus::Disconnect);

self.update();
}
Expand Down

0 comments on commit 62a1aa2

Please sign in to comment.