diff options
author | 2022-04-18 20:59:04 +0100 | |
---|---|---|
committer | 2022-04-18 20:59:04 +0100 | |
commit | 9b21f52e1f35face7ec552bd81ff1850c04dbe22 (patch) | |
tree | 451ec663e2abbd50a6d9df78a8e078a656f8dab6 | |
parent | Remove unused instance var from OTN cog (diff) |
Remove old task cancellations from modpings cog_unload
-rw-r--r-- | bot/exts/moderation/modpings.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/exts/moderation/modpings.py b/bot/exts/moderation/modpings.py index 730fc45ee..4d02c4530 100644 --- a/bot/exts/moderation/modpings.py +++ b/bot/exts/moderation/modpings.py @@ -240,11 +240,8 @@ class ModPings(Cog): async def cog_unload(self) -> None: """Cancel role tasks when the cog unloads.""" - log.trace("Cog unload: canceling role tasks.") - self.reschedule_task.cancel() + log.trace("Cog unload: cancelling all scheduled tasks.") self._role_scheduler.cancel_all() - - self.modpings_schedule_task.cancel() self._modpings_scheduler.cancel_all() |