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

pull/135/head
Michael Zanetti 2017-11-21 15:02:38 +01:00
parent 33095f4dbe
commit 46a61e3ccc
1 changed files with 1 additions and 1 deletions

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;
}