Skip to content

Commit

Permalink
Fix ClientVoiceManager::remove to actually call Manager::remove (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MOZGIII authored and arqunis committed Oct 15, 2019
1 parent 703f504 commit 2734e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/bridge/voice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl ClientVoiceManager {
pub fn remove<G: Into<GuildId>>(&mut self, guild_id: G) -> Option<()> {
let (gid, sid) = self.manager_info(guild_id);

self.managers.get_mut(&sid).map(|manager| manager.leave(gid))
self.managers.get_mut(&sid).map(|manager| manager.remove(gid))
}

pub fn set(&mut self, shard_id: u64, sender: MpscSender<InterMessage>) {
Expand Down

0 comments on commit 2734e27

Please sign in to comment.