diff options
| author | Rapptz <[email protected]> | 2019-11-20 03:04:04 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-11-20 03:04:04 -0500 |
| commit | 4ef0fb0d959b69d3b2cea87b0fc08310028e348f (patch) | |
| tree | 551edac62a819e4a1afe9cb19202df43cd9505b3 /discord/shard.py | |
| parent | Fix one more remaining loop passing for 3.8 in a Lock (diff) | |
| download | discord.py-4ef0fb0d959b69d3b2cea87b0fc08310028e348f.tar.xz discord.py-4ef0fb0d959b69d3b2cea87b0fc08310028e348f.zip | |
Fix more deprecation warnings
Diffstat (limited to 'discord/shard.py')
| -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 09891bd8..3e85d445 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -289,7 +289,7 @@ class AutoShardedClient(Client): except Exception: pass - to_close = [shard.ws.close() for shard in self.shards.values()] + to_close = [asyncio.ensure_future(shard.ws.close(), loop=self.loop) for shard in self.shards.values()] if to_close: await asyncio.wait(to_close) |