RealtimeSTT icon indicating copy to clipboard operation
RealtimeSTT copied to clipboard

fix: make sure shutdown() wakes up the recording_thread

Open oddlama opened this issue 1 year ago • 1 comments

This also ensures that the reader_process is not accessed if it hasn't been initialized due to use_microphone=False. The check was wrongly checking for the object and not the value, which always returned true.

With this patch, calling recorder.shutdown() will successfully shutdown even if use_microphone is False.

oddlama avatar Jun 19 '24 20:06 oddlama