mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Moved http.close to before _closed.set
This commit is contained in:
parent
42a7c4f7e5
commit
8b8e9a619e
@ -440,6 +440,7 @@ class Client:
|
|||||||
if self.is_closed():
|
if self.is_closed():
|
||||||
return
|
return
|
||||||
|
|
||||||
|
await self.http.close()
|
||||||
self._closed.set()
|
self._closed.set()
|
||||||
|
|
||||||
for voice in self.voice_clients:
|
for voice in self.voice_clients:
|
||||||
@ -452,8 +453,6 @@ class Client:
|
|||||||
if self.ws is not None and self.ws.open:
|
if self.ws is not None and self.ws.open:
|
||||||
await self.ws.close()
|
await self.ws.close()
|
||||||
|
|
||||||
|
|
||||||
await self.http.close()
|
|
||||||
self._ready.clear()
|
self._ready.clear()
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user