From 454207cd80f1159e9596c236893eba786ff3b918 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 15 Aug 2021 19:53:07 -0700 Subject: mobile: make cloud timeouts more consistent In the mobile version we should always allow a little more wait time for the cloud server - there just seem to be more issues with response times on mobile devices, especially when in places with poor data reception (which isn't uncommon for dive sites). Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index d3ea320c2..e70b18027 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -692,7 +692,7 @@ bool QMLManager::verifyCredentials(QString email, QString password, QString pin) QEventLoop loop; connect(csa, &CloudStorageAuthenticate::finishedAuthenticate, &loop, &QEventLoop::quit); connect(&myTimer, &QTimer::timeout, &loop, &QEventLoop::quit); - myTimer.start(5000); + myTimer.start(prefs.cloud_timeout * 1000); loop.exec(); if (!myTimer.isActive()) { // got no response from the server -- cgit v1.2.3-70-g09d2