mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Fix Client.close erroring if done before proper async initialisation
This commit is contained in:
parent
20aa6f866d
commit
2bf612cd67
@ -627,7 +627,10 @@ class Client:
|
|||||||
await self.ws.close(code=1000)
|
await self.ws.close(code=1000)
|
||||||
|
|
||||||
await self.http.close()
|
await self.http.close()
|
||||||
self._ready.clear()
|
|
||||||
|
if self._ready is not MISSING:
|
||||||
|
self._ready.clear()
|
||||||
|
|
||||||
self.loop = MISSING
|
self.loop = MISSING
|
||||||
|
|
||||||
def clear(self) -> None:
|
def clear(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user