Skip to content

Commit 8008017

Browse files
committed
Daemon - gracefully handle case where audio settings config isn't available
1 parent 27b00ec commit 8008017

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/server/ruby/bin/daemon.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,11 @@ class ScsynthBooter < ProcessBooter
535535

536536
def initialize(ports)
537537
@port = ports["scsynth"]
538+
# begin
538539
toml_opts_hash = Tomlrb.load_file(Paths.user_audio_settings_path, symbolize_keys: true).freeze
540+
# rescue StandardError
541+
# toml_opts_hash = {}
542+
# end
539543

540544
opts = unify_toml_opts_hash(toml_opts_hash)
541545
opts = merge_opts(opts)

0 commit comments

Comments
 (0)