mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-06 18:11:59 +00:00
Use create_future wrapper for initially created Future.
This commit is contained in:
parent
ac90159c72
commit
cadf6960b7
@ -43,7 +43,7 @@ class Shard:
|
|||||||
self.ws = ws
|
self.ws = ws
|
||||||
self._client = client
|
self._client = client
|
||||||
self.loop = self._client.loop
|
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
|
self._current.set_result(None) # we just need an already done future
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user