aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-04-12 19:55:01 -0400
committerRapptz <[email protected]>2017-04-12 19:55:01 -0400
commitcadf6960b747f0ac765947ed981b733847413823 (patch)
tree5dc27ca5d063fdaaaddd554400a611b9892cc759
parentImprove logging in more places. (diff)
downloaddiscord.py-cadf6960b747f0ac765947ed981b733847413823.tar.xz
discord.py-cadf6960b747f0ac765947ed981b733847413823.zip
Use create_future wrapper for initially created Future.
-rw-r--r--discord/shard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/shard.py b/discord/shard.py
index 07a6590b..62bd9a3c 100644
--- a/discord/shard.py
+++ b/discord/shard.py
@@ -43,7 +43,7 @@ class Shard:
self.ws = ws
self._client = client
self.loop = self._client.loop
- self._current = asyncio.Future(loop=self.loop)
+ self._current = compat.create_future(self.loop)
self._current.set_result(None) # we just need an already done future
@property