From 63839eb4648d596ee9666e590fd8c80465e873a4 Mon Sep 17 00:00:00 2001 From: Rob Blanckaert Date: Fri, 1 Mar 2019 15:11:09 -0800 Subject: [PATCH] Fixes #3590 (#3595) --- cockatrice/src/remoteclient.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()