mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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 <dirk@hohndel.org>
This commit is contained in:
parent
3faff0b7f0
commit
454207cd80
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue