aboutsummaryrefslogtreecommitdiff
path: root/discord/gateway.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-11-20 03:04:04 -0500
committerRapptz <[email protected]>2019-11-20 03:04:04 -0500
commit4ef0fb0d959b69d3b2cea87b0fc08310028e348f (patch)
tree551edac62a819e4a1afe9cb19202df43cd9505b3 /discord/gateway.py
parentFix one more remaining loop passing for 3.8 in a Lock (diff)
downloaddiscord.py-4ef0fb0d959b69d3b2cea87b0fc08310028e348f.tar.xz
discord.py-4ef0fb0d959b69d3b2cea87b0fc08310028e348f.zip
Fix more deprecation warnings
Diffstat (limited to 'discord/gateway.py')
-rw-r--r--discord/gateway.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index 81c7c09f..f2dc7fcb 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -389,7 +389,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
if op == self.INVALIDATE_SESSION:
if data is True:
- await asyncio.sleep(5.0, loop=self.loop)
+ await asyncio.sleep(5.0)
await self.close()
raise ResumeWebSocket(self.shard_id)