aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-12-12 04:42:46 +0100
committerGravatar Numerlor <[email protected]>2021-01-09 20:10:54 +0100
commit2a855de33c79bfebee4c85757d26b5463c1fccce (patch)
tree3cff9537c0621dfe9ee484b50558dc6dbc5ffee5
parentUse send_denial util instead of creating embed manually (diff)
Use cancel_all instead of manually calling cancel repeatedly
-rw-r--r--bot/exts/info/doc/_cog.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py
index 8c52b04cf..07a287572 100644
--- a/bot/exts/info/doc/_cog.py
+++ b/bot/exts/info/doc/_cog.py
@@ -268,8 +268,7 @@ class DocCog(commands.Cog):
"""Refresh internal documentation inventory."""
REFRESH_EVENT.clear()
log.debug("Refreshing documentation inventory...")
- for inventory in self.scheduled_inventories:
- self.inventory_scheduler.cancel(inventory)
+ self.inventory_scheduler.cancel_all()
# Clear the old base URLS and doc symbols to ensure
# that we start from a fresh local dataset.