From c62b6c3e8815cec6f73ec20aa4d0ebd9b68a0f14 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 26 Nov 2019 05:19:11 -0500 Subject: Fix more deprecation warnings for 3.8 --- discord/gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/gateway.py') diff --git a/discord/gateway.py b/discord/gateway.py index f2dc7fcb..21f4fc66 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -744,7 +744,7 @@ class DiscordVoiceWebSocket(websockets.client.WebSocketClientProtocol): async def poll_event(self): try: - msg = await asyncio.wait_for(self.recv(), timeout=30.0, loop=self.loop) + msg = await asyncio.wait_for(self.recv(), timeout=30.0) await self.received_message(json.loads(msg)) except websockets.exceptions.ConnectionClosed as exc: raise ConnectionClosed(exc, shard_id=None) from exc -- cgit v1.2.3