Skip to content

Commit 6a85b56

Browse files
committed
Daemon - fix jack post start commands
1 parent 6ac9bd5 commit 6a85b56

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

app/server/ruby/bin/daemon.rb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,12 @@ def run_pre_start_commands
625625
def run_post_start_commands
626626
case Util.os
627627
when :linux, :raspberry
628-
if @jack_booter
629-
Thread.new do
630-
Kernel.sleep 5
631-
# Note:
632-
# need to modify this to take account for @num_inputs and @num_outputs.
633-
# These might not always be set to two channels each.
634-
628+
Thread.new do
629+
Kernel.sleep 5
630+
# Note:
631+
# need to modoify this to take account for @num_inputs and @num_outputs.
632+
# These might not always be set to two channels each.
633+
if @jack_booter
635634
#First clear up any pulseaudio remains of module-loopback source=jack_in
636635
`pactl list short modules |grep source=jack_in| cut -f1 | xargs -L1 pactl unload-module`
637636
`pactl load-module module-jack-source channels=2 connect=0 client_name=JACK_to_PulseAudio`

0 commit comments

Comments
 (0)