Fix --profile
This commit is contained in:
parent
b171906162
commit
a7cdbb3844
1 changed files with 7 additions and 5 deletions
12
main.cpp
12
main.cpp
|
|
@ -251,15 +251,17 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
else
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
| If no GUI is needed, we let the background threads run |
|
||||
| as long as they need, but we need to AT LEAST wait for |
|
||||
| initialization to finish |
|
||||
\*---------------------------------------------------------*/
|
||||
ResourceManager::get()->WaitForInitialization();
|
||||
|
||||
if(ret_flags & RET_FLAG_START_SERVER)
|
||||
{
|
||||
NetworkServer* server = ResourceManager::get()->GetServer();
|
||||
ResourceManager::get()->WaitForInitialization();
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| The server is only started after detection finishes and |
|
||||
| it takes some time to get the server online - we wait |
|
||||
\*---------------------------------------------------------*/
|
||||
if(!server->GetOnline())
|
||||
{
|
||||
#ifdef _MACOSX_X86_X64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue