[commands] Fix bug with cog bot check once not being unloaded properly.

This commit is contained in:
Rapptz 2019-02-23 07:40:00 -05:00
parent 1a0b1dfd29
commit 10ed41d8a0

View File

@ -324,6 +324,6 @@ class Cog(metaclass=CogMeta):
bot.remove_check(self.bot_check)
if cls.bot_check_once is not Cog.bot_check_once:
bot.remove_check(self.bot_check_once)
bot.remove_check(self.bot_check_once, call_once=True)
finally:
self.cog_unload()