mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +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._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
|
||||
|
Loading…
x
Reference in New Issue
Block a user