From cadf6960b747f0ac765947ed981b733847413823 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 12 Apr 2017 19:55:01 -0400 Subject: [PATCH] Use create_future wrapper for initially created Future. --- discord/shard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/shard.py b/discord/shard.py index 07a6590b6..62bd9a3ca 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