aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
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()