adds running? method

returns producer thread alive state

fixes bug in strip/bus classes
This commit is contained in:
2023-08-10 14:40:22 +01:00
parent 81f277260a
commit b2194c7aa3
3 changed files with 7 additions and 3 deletions

View File

@@ -49,13 +49,17 @@ module Voicemeeter
public
def running?
@producer&.alive? # safe navigation
end
def init_event_threads
que = Queue.new
init_worker(que) and init_producer(que)
end
def end_event_threads
if @producer&.alive? # safe navigation
if running
@producer[:running] = false
@producer.join
end