diff options
Diffstat (limited to 'src/server/JackDriver.cpp')
-rw-r--r-- | src/server/JackDriver.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp index 0255c422..a4ae8e7b 100644 --- a/src/server/JackDriver.cpp +++ b/src/server/JackDriver.cpp @@ -108,8 +108,9 @@ JackDriver::attach(const std::string& server_name, // Either server name not specified, or supplied server name does not exist // Connect to default server if (!_client) { - if ((_client = jack_client_open(client_name.c_str(), JackNullOption, nullptr))) + if ((_client = jack_client_open(client_name.c_str(), JackNullOption, nullptr))) { _engine.log().info("Connected to default Jack server\n"); + } } // Still failed @@ -150,9 +151,10 @@ JackDriver::activate() return false; } - if (!_client) + if (!_client) { attach(world->conf().option("jack-server").ptr<char>(), world->conf().option("jack-name").ptr<char>(), nullptr); + } if (!_client) { return false; |