From 300f948ab2d1cd02546796e82ebf405cd52af51c Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 2 Dec 2018 18:41:29 -0300 Subject: [PATCH] pubsub.lazy_guild: remove member list from guild map too --- litecord/pubsub/lazy_guild.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litecord/pubsub/lazy_guild.py b/litecord/pubsub/lazy_guild.py index c7bb4b1..e0f64a2 100644 --- a/litecord/pubsub/lazy_guild.py +++ b/litecord/pubsub/lazy_guild.py @@ -1342,6 +1342,11 @@ class LazyGuildDispatcher(Dispatcher): """Remove a channel from the manager.""" try: gml = self.state.pop(channel_id) + + # remove it from guild map as well + guild_id = gml.guild_id + self.guild_map[guild_id].pop(channel_id) + gml.close() except KeyError: pass