Skip to content

Commit

Permalink
SSL: Do not block thread when connecting to host
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinRitt committed Jan 17, 2018
1 parent 5f1ebbe commit cb18454
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/mqtt/qmqtt_ssl_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cb18454

Please sign in to comment.