diff options
| author | Rapptz <[email protected]> | 2017-04-07 23:23:48 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-04-07 23:23:48 -0400 |
| commit | e5c5695399ecb1daffda6903d26cf0ab0f8b3f70 (patch) | |
| tree | 57facf8230df888b1847be32e469d22f67b7a698 | |
| parent | Fix KeyError in certain logging cases. (diff) | |
| download | discord.py-e5c5695399ecb1daffda6903d26cf0ab0f8b3f70.tar.xz discord.py-e5c5695399ecb1daffda6903d26cf0ab0f8b3f70.zip | |
Proper recursion when launching shards.
| -rw-r--r-- | discord/shard.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/shard.py b/discord/shard.py index 970f151d..723bc5da 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -179,7 +179,7 @@ class AutoShardedClient(Client): except Exception as e: log.info('Failed to connect for shard_id: %s. Retrying...' % shard_id) yield from asyncio.sleep(5.0, loop=self.loop) - yield from self.launch_shard(gateway, shard_id) + return (yield from self.launch_shard(gateway, shard_id)) ws.token = self.http.token ws._connection = self.connection |