Feat(cycle-wait): Extra sleep to prevent clock desync bug
This commit is contained in:
4
main.py
4
main.py
@@ -40,6 +40,7 @@ def main():
|
|||||||
|
|
||||||
if webhook_url != "":
|
if webhook_url != "":
|
||||||
requests.post(webhook_url, data=status_str)
|
requests.post(webhook_url, data=status_str)
|
||||||
|
print(status_str)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
print_str = ""
|
print_str = ""
|
||||||
@@ -114,6 +115,9 @@ def main():
|
|||||||
refresh_jwt, access_jwt = update_refresh_jwt(refresh_jwt)
|
refresh_jwt, access_jwt = update_refresh_jwt(refresh_jwt)
|
||||||
time.sleep(last_sleep_min*60/3)
|
time.sleep(last_sleep_min*60/3)
|
||||||
|
|
||||||
|
# Extra sleep to prevent clock desync
|
||||||
|
time.sleep(60)
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def update_refresh_jwt(jwt: str) -> (str, str):
|
def update_refresh_jwt(jwt: str) -> (str, str):
|
||||||
|
|||||||
Reference in New Issue
Block a user