From 18728992260e145b4d7d81de8a1a777820bfa291 Mon Sep 17 00:00:00 2001 From: Neythen Treloar Date: Mon, 21 Feb 2022 18:59:50 +0000 Subject: [PATCH] ticker process closed when screen turned off --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 8d5e528..1cd093e 100755 --- a/server.py +++ b/server.py @@ -206,13 +206,14 @@ def stop(): ticker.sendline('K') if not displaying_screensaver: + time.sleep(1) # give time for leds to turn off ticker.close() else: screensaver_p.close() if not ticker_stopped: - time.sleep(2) # give time for leds to turn off + time.sleep(1) # give time for leds to turn off ticker.close() ticker_stopped = True