1
0
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:
Alexander Wilms 2023-09-27 00:31:31 +02:00
parent 20a944c551
commit 614d000376

View File

@ -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));
}
}