Skip to content

Commit 9165140

Browse files
committed
Daemon - *actually* gracefully handle case where audio settings config isn't available
Previous commit had this commented out. Oops!
1 parent b43864b commit 9165140

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/server/ruby/bin/daemon.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,11 @@ class ScsynthBooter < ProcessBooter
585585

586586
def initialize(ports)
587587
@port = ports["scsynth"]
588-
# begin
588+
begin
589589
toml_opts_hash = Tomlrb.load_file(Paths.user_audio_settings_path, symbolize_keys: true).freeze
590-
# rescue StandardError
591-
# toml_opts_hash = {}
592-
# end
590+
rescue StandardError
591+
toml_opts_hash = {}
592+
end
593593

594594
opts = unify_toml_opts_hash(toml_opts_hash)
595595
opts = merge_opts(opts)

0 commit comments

Comments
 (0)