From b18550918ddab91cf6f3d11b4720ef4b89c1922f Mon Sep 17 00:00:00 2001 From: user Date: Sat, 6 Apr 2024 01:47:23 +0300 Subject: [PATCH] fix --- app/core/background/license_service.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/core/background/license_service.py b/app/core/background/license_service.py index 4b61392..b2673d6 100644 --- a/app/core/background/license_service.py +++ b/app/core/background/license_service.py @@ -99,12 +99,11 @@ async def main_fn(memory, ): while True: try: platform_found, seqno = await license_index_loop(memory, platform_found, seqno) + if platform_found: + await send_status("licenses", f"working (seqno={seqno})") except BaseException as e: make_log("LicenseIndex", f"Error: {e}" + '\n' + traceback.format_exc(), level="error") - if platform_found: - await send_status("LicenseIndex", f"working (seqno={seqno})") - await asyncio.sleep(5) seqno += 1