mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2026-09-10 12:58:48 +00:00
adds running? method
returns producer thread alive state fixes bug in strip/bus classes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user