1
0
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:
nordsoft
2022-11-16 23:53:54 +04:00
parent 179cdee424
commit 4527bd1a61
7 changed files with 25 additions and 4 deletions

View File

@ -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();
}
}