mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Disconnection on error
This commit is contained in:
@ -30,6 +30,7 @@ void SocketLobby::connectServer(const QString & host, int port, const QString &
|
||||
if(!socket->waitForDisconnected(timeout) && !isConnected)
|
||||
{
|
||||
emit text("Error: " + socket->errorString());
|
||||
emit disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user