From 75539972106b3f55e09180d9c57e6bcf5283dce3 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Sat, 26 Feb 2022 19:56:58 +0100 Subject: [PATCH] Cut closing time in half --- twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index e538fcf..b59861d 100644 --- a/twitch.py +++ b/twitch.py @@ -116,7 +116,7 @@ class Twitch: await self.websocket.stop() # wait at least one full second + whatever it takes to complete the closing # this allows aiohttp to safely close the session - await asyncio.sleep(start_time + 1 - time()) + await asyncio.sleep(start_time + 0.5 - time()) def wait_until_login(self): return self._is_logged_in.wait()