From 651c6551b9918549d1e5e8bb859a1c3e70cb2c02 Mon Sep 17 00:00:00 2001 From: Samuel Pua Date: Mon, 2 Jan 2023 00:10:09 +0800 Subject: [PATCH] Feat(cycle-wait): Extra sleep to prevent clock desync bug --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 05ccc48..a7d8d20 100644 --- a/main.py +++ b/main.py @@ -40,6 +40,7 @@ def main(): if webhook_url != "": requests.post(webhook_url, data=status_str) + print(status_str) while True: print_str = "" @@ -114,6 +115,9 @@ def main(): refresh_jwt, access_jwt = update_refresh_jwt(refresh_jwt) time.sleep(last_sleep_min*60/3) + # Extra sleep to prevent clock desync + time.sleep(60) + pass def update_refresh_jwt(jwt: str) -> (str, str):