Browse Source
Don't try to close shards if there are none yet.
pull/1614/head
Gorialis
7 years ago
No known key found for this signature in database
GPG Key ID: AEC0159D4D8CFDD8
1 changed files with
3 additions and
1 deletions
-
discord/shard.py
|
|
@ -286,7 +286,9 @@ class AutoShardedClient(Client): |
|
|
|
pass |
|
|
|
|
|
|
|
to_close = [shard.ws.close() for shard in self.shards.values()] |
|
|
|
await asyncio.wait(to_close, loop=self.loop) |
|
|
|
if to_close: |
|
|
|
await asyncio.wait(to_close, loop=self.loop) |
|
|
|
|
|
|
|
await self.http.close() |
|
|
|
|
|
|
|
async def change_presence(self, *, activity=None, status=None, afk=False, shard_id=None): |
|
|
|