Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schuster <michael@schuster.ms>2020-03-09 03:22:58 +0300
committerMichael Schuster <michael@schuster.ms>2020-03-09 04:34:55 +0300
commitc812d896aa4835f945ed8de9b4ff5c79c73e1031 (patch)
treeaf02d90612782a35ad00e2c5513056ab052d9b1f /src/gui/updater
parentc043a4e55c7b6dc97b8c8f1e7daa96db2200f4de (diff)
Fix OCUpdater: Also change status on network error or invalid XML
Signed-off-by: Michael Schuster <michael@schuster.ms>
Diffstat (limited to 'src/gui/updater')
-rw-r--r--src/gui/updater/ocupdater.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp
index 21e57ef80..af7b7c2ed 100644
--- a/src/gui/updater/ocupdater.cpp
+++ b/src/gui/updater/ocupdater.cpp
@@ -223,6 +223,7 @@ void OCUpdater::slotVersionInfoArrived()
reply->deleteLater();
if (reply->error() != QNetworkReply::NoError) {
qCWarning(lcUpdater) << "Failed to reach version check url: " << reply->errorString();
+ setDownloadState(DownloadTimedOut);
return;
}
@@ -234,6 +235,7 @@ void OCUpdater::slotVersionInfoArrived()
versionInfoArrived(_updateInfo);
} else {
qCWarning(lcUpdater) << "Could not parse update information.";
+ setDownloadState(DownloadTimedOut);
}
}