Browse Source

Fix Client.close erroring if done before proper async initialisation

pull/7696/head
Rapptz 3 years ago
parent
commit
2bf612cd67
  1. 5
      discord/client.py

5
discord/client.py

@ -627,7 +627,10 @@ class Client:
await self.ws.close(code=1000)
await self.http.close()
self._ready.clear()
if self._ready is not MISSING:
self._ready.clear()
self.loop = MISSING
def clear(self) -> None:

Loading…
Cancel
Save