Make it easier to insert code between when the server is setup and when it's started.

This commit is contained in:
JoelKatz
2013-01-09 23:55:39 -08:00
parent 1e2b11fe80
commit 376f214a70
3 changed files with 12 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ void sigIntHandler(int)
}
#endif
void Application::run()
void Application::setup()
{
#ifndef WIN32
#ifdef SIGINT
@@ -256,7 +256,10 @@ void Application::run()
}
else
mNetOps.setStateTimer();
}
void Application::run()
{
mIOService.run(); // This blocks
if (mWSPublicDoor)