mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Do not show remote connection closed error
This commit is contained in:
parent
92323f546d
commit
978819ef96
@ -167,7 +167,7 @@ void Client::setHost(const QString &host)
|
||||
|
||||
void Client::setClientMode(const int mode)
|
||||
{
|
||||
m_clientMode = (MQTTClientMode)mode;
|
||||
m_clientMode = static_cast<MQTTClientMode>(mode);
|
||||
emit clientModeChanged();
|
||||
}
|
||||
|
||||
@ -251,9 +251,6 @@ void Client::onError(const QMQTT::ClientError error)
|
||||
case QMQTT::SocketConnectionRefusedError:
|
||||
str = tr("Connection refused");
|
||||
break;
|
||||
case QMQTT::SocketRemoteHostClosedError:
|
||||
str = tr("Remote host closed the connection");
|
||||
break;
|
||||
case QMQTT::SocketHostNotFoundError:
|
||||
str = tr("Host not found");
|
||||
break;
|
||||
@ -335,6 +332,9 @@ void Client::onError(const QMQTT::ClientError error)
|
||||
case QMQTT::MqttNoPingResponse:
|
||||
str = tr("MQTT no ping response");
|
||||
break;
|
||||
default:
|
||||
str = "";
|
||||
break;
|
||||
}
|
||||
|
||||
if (!str.isEmpty())
|
||||
|
Loading…
x
Reference in New Issue
Block a user