macos fix
All checks were successful
BlockStorage/repertory_mac/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory_mac/pipeline/head This commit looks good
This commit is contained in:
@@ -293,7 +293,7 @@ handlers::handlers(mgmt_app_config *config, httplib::Server *server)
|
|||||||
|
|
||||||
event_system::instance().start();
|
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 &[prov, names] : config_->get_auto_start_list()) {
|
||||||
for (const auto &name : names) {
|
for (const auto &name : names) {
|
||||||
try {
|
try {
|
||||||
@@ -345,6 +345,8 @@ handlers::handlers(mgmt_app_config *config, httplib::Server *server)
|
|||||||
nonce_thread_ =
|
nonce_thread_ =
|
||||||
std::make_unique<std::thread>([this]() { removed_expired_nonces(); });
|
std::make_unique<std::thread>([this]() { removed_expired_nonces(); });
|
||||||
|
|
||||||
|
auto_mount.join();
|
||||||
|
|
||||||
server_->listen("127.0.0.1", config_->get_api_port());
|
server_->listen("127.0.0.1", config_->get_api_port());
|
||||||
if (this_server != nullptr) {
|
if (this_server != nullptr) {
|
||||||
this_server = nullptr;
|
this_server = nullptr;
|
||||||
|
Reference in New Issue
Block a user