diff options
author | 2021-06-11 16:04:21 +0530 | |
---|---|---|
committer | 2021-06-11 16:05:27 +0530 | |
commit | 9bf22be683fa6e1b6ae542855e983bf360ed1b20 (patch) | |
tree | f2de315c175e04e895b82a8d02e14596d603e5ba | |
parent | Merge branch 'main' into modpings-schedule (diff) |
(modpings): Cancel scheduler and tasks on cog unload
-rw-r--r-- | bot/exts/moderation/modpings.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/exts/moderation/modpings.py b/bot/exts/moderation/modpings.py index 1154bce9c..bafd40580 100644 --- a/bot/exts/moderation/modpings.py +++ b/bot/exts/moderation/modpings.py @@ -221,6 +221,9 @@ class ModPings(Cog): self.reschedule_task.cancel() self._role_scheduler.cancel_all() + self.modpings_schedule_task.cancel() + self._modpings_scheduler.cancel_all() + def setup(bot: Bot) -> None: """Load the ModPings cog.""" |