aboutsummaryrefslogtreecommitdiffstats
path: root/botcore
diff options
context:
space:
mode:
Diffstat (limited to 'botcore')
-rw-r--r--botcore/_bot.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/botcore/_bot.py b/botcore/_bot.py
index 82abbdc0..55923dd0 100644
--- a/botcore/_bot.py
+++ b/botcore/_bot.py
@@ -109,9 +109,6 @@ class BotBase(commands.Bot):
attempt + 1
)
- # All tasks that need to block closing until finished
- self.closing_tasks: list[asyncio.Task] = []
-
async def load_extensions(self, module: types.ModuleType) -> None:
"""Load all the extensions within the given module and save them to ``self.all_extensions``."""
self.all_extensions = walk_extensions(module)
@@ -240,10 +237,6 @@ class BotBase(commands.Bot):
with suppress(Exception):
await self.remove_cog(cog)
- # Wait until all tasks that have to be completed before bot is closing is done
- log.trace("Waiting for tasks before closing.")
- await asyncio.gather(*self.closing_tasks)
-
# Now actually do full close of bot
await super().close()