diff --git a/repertory/repertory/src/ui/handlers.cpp b/repertory/repertory/src/ui/handlers.cpp index 8c2e6ed6..3bb40637 100644 --- a/repertory/repertory/src/ui/handlers.cpp +++ b/repertory/repertory/src/ui/handlers.cpp @@ -293,7 +293,7 @@ handlers::handlers(mgmt_app_config *config, httplib::Server *server) event_system::instance().start(); - std::jthread auto_mount([this]() { + std::thread auto_mount([this]() { for (const auto &[prov, names] : config_->get_auto_start_list()) { for (const auto &name : names) { try { @@ -345,6 +345,8 @@ handlers::handlers(mgmt_app_config *config, httplib::Server *server) nonce_thread_ = std::make_unique([this]() { removed_expired_nonces(); }); + auto_mount.join(); + server_->listen("127.0.0.1", config_->get_api_port()); if (this_server != nullptr) { this_server = nullptr;