diff options
author | 2019-10-03 00:22:15 +0100 | |
---|---|---|
committer | 2019-10-03 00:22:15 +0100 | |
commit | 733410058f926666ba061c9a084251cebb601cba (patch) | |
tree | dac87e4f021f98f4287d26982cf2b25fd4bf0709 | |
parent | Fix mutes not being re-applied on rejoins. (diff) | |
parent | Merge pull request #483 from python-discord/fix-watchchannels-unload-cog-bug (diff) |
Merge branch 'master' into mute-fix
-rw-r--r-- | bot/cogs/watchchannels/watchchannel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/watchchannels/watchchannel.py b/bot/cogs/watchchannels/watchchannel.py index ce8014d69..760e012eb 100644 --- a/bot/cogs/watchchannels/watchchannel.py +++ b/bot/cogs/watchchannels/watchchannel.py @@ -335,7 +335,7 @@ class WatchChannel(metaclass=CogABCMeta): def cog_unload(self) -> None: """Takes care of unloading the cog and canceling the consumption task.""" self.log.trace(f"Unloading the cog") - if not self._consume_task.done(): + if self._consume_task and not self._consume_task.done(): self._consume_task.cancel() try: self._consume_task.result() |