Cleanup thread creation.

This commit is contained in:
JoelKatz
2012-12-21 12:10:26 -08:00
parent d34c0e6a45
commit 34456b019c
4 changed files with 5 additions and 10 deletions

View File

@@ -103,9 +103,7 @@ void Application::run()
LogPartition::setSeverity(lsDEBUG);
}
boost::thread auxThread(boost::bind(&boost::asio::io_service::run, &mAuxService));
auxThread.detach();
boost::thread(boost::bind(&boost::asio::io_service::run, &mAuxService)).detach();
if (!theConfig.RUN_STANDALONE)
mSNTPClient.init(theConfig.SNTP_SERVERS);