Browse Source

Sleep for 10 ms instead of 1000 ms while waiting for server connection

Alexander Wilms 2 years ago
parent
commit
614d000376
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/CServerHandler.cpp

+ 2 - 2
client/CServerHandler.cpp

@@ -263,8 +263,8 @@ void CServerHandler::justConnectToServer(const std::string & addr, const ui16 po
 		}
 		}
 		catch(std::runtime_error & error)
 		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));
 		}
 		}
 	}
 	}