diff --git a/src/mqtt/qmqtt_ssl_socket.cpp b/src/mqtt/qmqtt_ssl_socket.cpp index 9c547d1..66c478f 100644 --- a/src/mqtt/qmqtt_ssl_socket.cpp +++ b/src/mqtt/qmqtt_ssl_socket.cpp @@ -77,11 +77,6 @@ void QMQTT::SslSocket::connectToHost(const QHostAddress& address, quint16 port) void QMQTT::SslSocket::connectToHost(const QString& hostName, quint16 port) { _socket->connectToHostEncrypted(hostName, port); - - if (!_socket->waitForEncrypted()) - { - qCritical() << QStringLiteral("qmqtt SSL: ") << _socket->errorString(); - } } void QMQTT::SslSocket::disconnectFromHost()