1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix invalid host connection

This commit is contained in:
nordsoft 2023-01-04 00:05:59 +04:00 committed by Nordsoft91
parent a2581fb942
commit c0c1be2645

View File

@ -201,6 +201,10 @@ void CVCMIServer::run()
void CVCMIServer::establishRemoteConnections()
{
//wait for host connection
while(connections.empty())
boost::this_thread::sleep(boost::posix_time::milliseconds(50));
uuid = cmdLineOptions["lobby-uuid"].as<std::string>();
int numOfConnections = cmdLineOptions["connections"].as<ui16>();
auto address = cmdLineOptions["lobby"].as<std::string>();