Fire up the aux thread earlier.

This commit is contained in:
JoelKatz
2012-08-14 01:51:17 -07:00
parent 04427b4ad0
commit 3dcdc3b94a

View File

@@ -70,11 +70,11 @@ void Application::run()
if (!theConfig.DEBUG_LOGFILE.empty())
Log::setLogFile(theConfig.DEBUG_LOGFILE);
mSNTPClient.init(theConfig.SNTP_SERVERS);
boost::thread auxThread(boost::bind(&boost::asio::io_service::run, &mAuxService));
auxThread.detach();
mSNTPClient.init(theConfig.SNTP_SERVERS);
//
// Construct databases.
//