Fix more deprecation warnings

This commit is contained in:
Rapptz committed 2019-11-20 03:04:04 -05:00
1 parent 1b040fd4ba
commit 4ef0fb0d95
3 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -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)