From 63fe8e7e9e1c68fd3f284bac6666ae5e5f970b6b Mon Sep 17 00:00:00 2001 From: bel Date: Sat, 1 Apr 2023 11:13:57 -0600 Subject: [PATCH] whoops --- rust-whisper.d/hotwords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-whisper.d/hotwords.py b/rust-whisper.d/hotwords.py index fb19968..f58ba09 100644 --- a/rust-whisper.d/hotwords.py +++ b/rust-whisper.d/hotwords.py @@ -54,7 +54,7 @@ class Reader(threading.Thread): def mic_idx(self): mics = [] - while not mics: + while not mics and not self.should_stop(): log(f'searching for one of {self.name.split(",")} in {sr.Microphone.list_microphone_names()}...') time.sleep(1) mics = [