From 2734e27a163a1cc585bd7f4f7b5aa0855792ed58 Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Tue, 15 Oct 2019 17:36:09 +0300 Subject: [PATCH] Fix `ClientVoiceManager::remove` to actually call `Manager::remove` (#730) --- src/client/bridge/voice/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/bridge/voice/mod.rs b/src/client/bridge/voice/mod.rs index 3cfe9f0a0a9..7231b43bb78 100644 --- a/src/client/bridge/voice/mod.rs +++ b/src/client/bridge/voice/mod.rs @@ -70,7 +70,7 @@ impl ClientVoiceManager { pub fn remove>(&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) {