mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Allow to reconnect to proxy server
This commit is contained in:
@@ -189,6 +189,12 @@ void ApplyOnServerAfterAnnounceNetPackVisitor::visitLobbyClientDisconnected(Lobb
|
||||
srv.addToAnnounceQueue(std::move(ph));
|
||||
}
|
||||
srv.updateAndPropagateLobbyState();
|
||||
|
||||
if(srv.getState() != EServerState::SHUTDOWN && srv.remoteConnections.count(pack.c))
|
||||
{
|
||||
srv.remoteConnections -= pack.c;
|
||||
srv.connectToRemote();
|
||||
}
|
||||
}
|
||||
|
||||
void ClientPermissionsCheckerNetPackVisitor::visitLobbyChatMessage(LobbyChatMessage & pack)
|
||||
|
||||
Reference in New Issue
Block a user