From c27f3d786e5b6d00b8c300d20f5e25bf1ef655af Mon Sep 17 00:00:00 2001 From: Greg Sandstrom Date: Wed, 2 Aug 2023 12:30:47 -0700 Subject: [PATCH] always try to turn off a channel when stopping blink even if there is no running thread --- ssa/alarm/lightstack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssa/alarm/lightstack.py b/ssa/alarm/lightstack.py index 9a75f6d..2c5b584 100644 --- a/ssa/alarm/lightstack.py +++ b/ssa/alarm/lightstack.py @@ -92,7 +92,7 @@ class LightStack: thread.cancel() thread.join() self.channel_threads[channel] = None - self.off(channel) + self.off(channel) def get(self, channel): return self.channel_states.get(channel, None) -- 1.9.1