mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Check if we're closed before attempting to do a reconnect.
This commit is contained in:
1 parent
a0cdb19c5f
commit
5461bfb475
2 files changed
+5
-1
No files matched your search
+2
-1
@@ -234,11 +234,12 @@ class AutoShardedClient(Client):
|
||||
if self.is_closed():
|
||||
return
|
||||
|
||||
self._closed.set()
|
||||
|
||||
for shard in self.shards.values():
|
||||
yield from shard.ws.close()
|
||||
|
||||
yield from self.http.close()
|
||||
self._closed.set()
|
||||
|
||||
@asyncio.coroutine
|
||||
def change_presence(self, *, game=None, status=None, afk=False, shard_id=None):
|
||||
|
||||
Reference in new issue
Block a user