This commit is contained in:
Rob Blanckaert 2019-03-01 15:11:09 -08:00 committed by Zach H
parent eb60fec8e2
commit 63839eb464

View file

@ -81,8 +81,10 @@ void RemoteClient::slotWebSocketError(QAbstractSocket::SocketError /*error*/)
{ {
QString errorString = websocket->errorString(); QString errorString = websocket->errorString();
doDisconnectFromServer(); if (getStatus() != ClientStatus::StatusDisconnected) {
emit socketError(errorString); doDisconnectFromServer();
emit socketError(errorString);
}
} }
void RemoteClient::slotConnected() void RemoteClient::slotConnected()