diff --git a/repertory/repertory/src/ui/ui_server.cpp b/repertory/repertory/src/ui/ui_server.cpp index fc75e95d..0b60483c 100644 --- a/repertory/repertory/src/ui/ui_server.cpp +++ b/repertory/repertory/src/ui/ui_server.cpp @@ -970,17 +970,17 @@ void ui_server::start() { server_.listen_after_bind(); return; - } else { - utils::error::raise_error(function_name, - utils::error::create_error_message({ - "bind timeout (port in use)", - "host", - host, - "port", - std::to_string(desired_port), - })); - should_launch = false; } + + utils::error::raise_error(function_name, + utils::error::create_error_message({ + "bind timeout (port in use)", + "host", + host, + "port", + std::to_string(desired_port), + })); + should_launch = false; } notify_and_unlock(nonce_lock);