Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
fixing non responsive API
Browse files Browse the repository at this point in the history
  • Loading branch information
danielocdh committed Mar 13, 2020
1 parent de80440 commit 0a0cb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libapicore/ApiServer.cpp
Expand Up @@ -268,8 +268,8 @@ void ApiServer::start()

cnote << "Api server listening on port " + to_string(m_acceptor.local_endpoint().port())
<< (m_password.empty() ? "." : ". Authentication needed.");
m_workThread = std::thread{boost::bind(&ApiServer::begin_accept, this)};
m_running.store(true, std::memory_order_relaxed);
m_workThread = std::thread{boost::bind(&ApiServer::begin_accept, this)};
}

void ApiServer::stop()
Expand Down

0 comments on commit 0a0cb88

Please sign in to comment.