From cfbda17cfbc8c9feb031bc4859cc7382848ac6e6 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 8 Aug 2024 02:06:52 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/system.py b/modules/system.py index a8754cd..c11ffb0 100644 --- a/modules/system.py +++ b/modules/system.py @@ -539,10 +539,13 @@ def suppress_stdout(): async def watchdog(): global retry_int1, retry_int2 - sentry_loop = 0 - lastSpotted = "" - sentry_loop2 = 0 - lastSpotted2 = "" + if sentry_enabled: + sentry_loop = 0 + lastSpotted = "" + enemySpotted = "" + sentry_loop2 = 0 + lastSpotted2 = "" + enemySpotted2 = "" # watchdog for connection to the interface while True: await asyncio.sleep(20)