aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-24 20:16:55 -0800
committerGravatar MarkKoz <[email protected]>2020-03-22 15:54:38 -0700
commit1b01d2ea453d9db429704f1265b260d4c8f8fd02 (patch)
tree9b0f0bd93d928ce8272eb47d5a31a2583326662e
parentHelpChannels: use >= instead of > to determine if timed out (diff)
HelpChannels: cancel the task in _scheduled_task
-rw-r--r--bot/cogs/help_channels.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index 231c34d7b..394efd3b5 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -421,6 +421,8 @@ class HelpChannels(Scheduler, commands.Cog):
# The parent task (_scheduled_task) will still get cancelled.
await asyncio.shield(self.move_idle_channel(data.channel))
+ self.cancel_task(data.channel.id)
+
def setup(bot: Bot) -> None:
"""Load the HelpChannels cog."""