mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Close ClientSession after closing websocket connections
This commit is contained in:
parent
ee26b58c6c
commit
11e23c534a
@ -527,7 +527,6 @@ class Client:
|
||||
if self._closed:
|
||||
return
|
||||
|
||||
await self.http.close()
|
||||
self._closed = True
|
||||
|
||||
for voice in self.voice_clients:
|
||||
@ -540,6 +539,7 @@ class Client:
|
||||
if self.ws is not None and self.ws.open:
|
||||
await self.ws.close(code=1000)
|
||||
|
||||
await self.http.close()
|
||||
self._ready.clear()
|
||||
|
||||
def clear(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user