mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Better fix for lobby room crash
Always use TCP connection when connecting to self-hosted lobby room. Effectively reverts 1.6.6 change for lobby connections. Single-player connections still use intra-process pseudo connection Main problem is various side effects caused by changing order of operations. For example, client may inform lobby about joining the room before server finishes startup, which was not possible before.
This commit is contained in:
@ -194,7 +194,6 @@ void CServerHandler::startLocalServerAndConnect(bool connectToLobby)
|
||||
|
||||
void CServerHandler::connectToServer(const std::string & addr, const ui16 port)
|
||||
{
|
||||
logNetwork->info("Establishing connection to %s:%d...", addr, port);
|
||||
setState(EClientState::CONNECTING);
|
||||
serverHostname = addr;
|
||||
serverPort = port;
|
||||
|
Reference in New Issue
Block a user