From 46c99f1ae0ea0dd5f531be4ab2dcb967b5bf793e Mon Sep 17 00:00:00 2001 From: Namonay Date: Wed, 25 Feb 2026 11:18:10 +0000 Subject: [PATCH] a --- client/bs_shutdown.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/bs_shutdown.py b/client/bs_shutdown.py index 0007ae9..6cb782c 100644 --- a/client/bs_shutdown.py +++ b/client/bs_shutdown.py @@ -49,10 +49,11 @@ def update(): now = to_seconds(datetime.now().time()) if (time - now) < 0: exit - if (time != LAST_VALUE and LAST_VALUE != 0): + if (time != LAST_VALUE): + if (LAST_VALUE != 0): + subprocess.run(["shutdown", "/a"]) + print("new val detected") LAST_VALUE = time - subprocess.run(["shutdown", "/a"]) - print("new val detected") if (time == LAST_VALUE): print("Nothing changed") return