aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-06 07:31:31 -0400
committerRapptz <[email protected]>2021-04-06 07:31:31 -0400
commit7e3c5f3fafe558e7bf6298b5d593492ad2793359 (patch)
treef00d10ccb2596aecd135d6acaa2520ebb303fb37 /discord/state.py
parentRemove unused group functionality (diff)
downloaddiscord.py-7e3c5f3fafe558e7bf6298b5d593492ad2793359.tar.xz
discord.py-7e3c5f3fafe558e7bf6298b5d593492ad2793359.zip
Fix some regressions from create_task change
Diffstat (limited to 'discord/state.py')
-rw-r--r--discord/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py
index 82f5371c..8374b30e 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -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()