aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-07-23 07:56:12 +0300
committerGravatar GitHub <[email protected]>2020-07-23 07:56:12 +0300
commit360ce808bdc12ab8dfc998927d6a07658aa2b633 (patch)
treee25c0ba615855b3c7f66399f7b5a665af5d53e02
parentAdd copyright about `_remove_extension` + make function private (diff)
Improve extension + cogs removing comment on `close`
Co-authored-by: Mark <[email protected]>
-rw-r--r--bot/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/bot.py b/bot/bot.py
index f5f76b7f8..7a8f9932c 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -108,7 +108,7 @@ class Bot(commands.Bot):
async def close(self) -> None:
"""Close the Discord connection and the aiohttp session, connector, statsd client, and resolver."""
- # Remove extensions and cogs before calling super().close() to allow task finish before HTTP session close
+ # Done before super().close() to allow tasks finish before the HTTP session closes.
self.remove_extensions()
# Wait until all tasks that have to be completed before bot is closing is done