mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Sleep for 10 ms instead of 1000 ms while waiting for server connection
This commit is contained in:
parent
20a944c551
commit
614d000376
@ -263,8 +263,8 @@ void CServerHandler::justConnectToServer(const std::string & addr, const ui16 po
|
||||
}
|
||||
catch(std::runtime_error & error)
|
||||
{
|
||||
logNetwork->warn("\nCannot establish connection. %s Retrying in 1 second", error.what());
|
||||
boost::this_thread::sleep_for(boost::chrono::milliseconds(1000));
|
||||
logNetwork->warn("\nCannot establish connection. %s Retrying in 10 ms", error.what());
|
||||
boost::this_thread::sleep_for(boost::chrono::milliseconds(10));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user