increase cloud connection timeout

Awesome diving location does not rhyme with small Internet latency.

Signed-off-by: Gaetan Bisson <bisson@archlinux.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Gaetan Bisson 2015-10-16 14:55:33 -10:00 committed by Dirk Hohndel
parent af45a2a072
commit 9c49f8924b

View file

@ -34,7 +34,7 @@ bool CheckCloudConnection::checkServer()
connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
connect(reply, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(sslErrors(QList<QSslError>)));
timer.start(2000); // wait two seconds
timer.start(5000); // wait five seconds
loop.exec();
if (timer.isActive()) {
// didn't time out, did we get the right response?