Browse Source

fixed sudden webconsole hangs

pull/1515/head
orignal 5 years ago
parent
commit
789ff702ac
  1. 4
      daemon/HTTPServer.cpp

4
daemon/HTTPServer.cpp

@ -1227,10 +1227,10 @@ namespace http { @@ -1227,10 +1227,10 @@ namespace http {
LogPrint(eLogInfo, "HTTPServer: password set to ", pass);
}
m_Thread = std::unique_ptr<std::thread>(new std::thread (std::bind (&HTTPServer::Run, this)));
m_IsRunning = true;
m_Thread.reset (new std::thread (std::bind (&HTTPServer::Run, this)));
m_Acceptor.listen ();
Accept ();
m_IsRunning = true;
}
void HTTPServer::Stop ()

Loading…
Cancel
Save