Fix some regressions from create_task change

This commit is contained in:
Rapptz
2021-04-06 07:31:31 -04:00
parent d69b2f0af5
commit 7e3c5f3faf
2 changed files with 2 additions and 2 deletions

View File

@ -1118,7 +1118,7 @@ class AutoShardedConnectionState(ConnectionState):
current_bucket = []
# Chunk the guild in the background while we wait for GUILD_CREATE streaming
future = asyncio.create_task(self.chunk_guild(guild))
future = asyncio.ensure_future(self.chunk_guild(guild))
current_bucket.append(future)
else:
future = self.loop.create_future()