From 2ca97cba47c98f0689c85dbe56dacc0d9039e57e Mon Sep 17 00:00:00 2001 From: Namonay Date: Wed, 25 Feb 2026 12:19:29 +0000 Subject: [PATCH] a --- client/bs_shutdown.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/bs_shutdown.py b/client/bs_shutdown.py index 0261a44..95cb1f8 100644 --- a/client/bs_shutdown.py +++ b/client/bs_shutdown.py @@ -43,7 +43,7 @@ def update(): if data is not None and data["noshutdown"] == 1: if (LAST_VALUE != 0): subprocess.run(["shutdown", "/a"]) - exit + return if data is None: time = to_seconds(datetime.strptime(DEFAULT_SHUTDOWN, "%H:%M").time()) else: @@ -51,7 +51,7 @@ def update(): now = to_seconds(datetime.now().time()) if (time - now) < 0: - exit + return if (time == LAST_VALUE): print("Nothing changed")