revert part of the fix, it makes it crash

pull/135/head
Michael Zanetti 2019-01-08 18:11:28 +01:00
parent 1094f589d1
commit bd84f5c633
1 changed files with 2 additions and 3 deletions

View File

@ -99,9 +99,8 @@ void AWSConnector::doConnect()
connect(m_client, &MqttClient::connected, this, &AWSConnector::onConnected);
connect(m_client, &MqttClient::disconnected, this, &AWSConnector::onDisconnected);
connect(m_client, &MqttClient::error, this, [this](const QAbstractSocket::SocketError error){
qCWarning(dcAWS()) << "An error happened in the MQTT transport" << error << QMetaEnum::fromType<QAbstractSocket::SocketError>().valueToKey(error);
onDisconnected();
connect(m_client, &MqttClient::error, this, [](const QAbstractSocket::SocketError error){
qCWarning(dcAWS()) << "An error happened in the MQTT transport" << error;
});
connect(m_client, &MqttClient::subscribed, this, &AWSConnector::onSubscribed);