diff --git a/cockatrice/src/remoteclient.cpp b/cockatrice/src/remoteclient.cpp index 3451e575..4f3d6af2 100644 --- a/cockatrice/src/remoteclient.cpp +++ b/cockatrice/src/remoteclient.cpp @@ -81,8 +81,10 @@ void RemoteClient::slotWebSocketError(QAbstractSocket::SocketError /*error*/) { QString errorString = websocket->errorString(); - doDisconnectFromServer(); - emit socketError(errorString); + if (getStatus() != ClientStatus::StatusDisconnected) { + doDisconnectFromServer(); + emit socketError(errorString); + } } void RemoteClient::slotConnected()