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")