delay reconnecting a little bit to allow the cloud to settle things

This commit is contained in:
Michael Zanetti 2017-11-21 15:02:38 +01:00
parent 33095f4dbe
commit 46a61e3ccc

View File

@ -141,7 +141,7 @@ void AWSConnector::onDeviceRegistered(bool needsReconnect)
m_client->Disconnect(std::chrono::milliseconds(500));
m_client.reset();
m_networkConnection.reset();
staticMetaObject.invokeMethod(this, "doConnect", Qt::QueuedConnection);
QTimer::singleShot(1000, this, &AWSConnector::doConnect);
});
return;
}