Fix OCUpdater: Also change status on network error or invalid XML

Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Michael Schuster 2020-03-09 01:22:58 +01:00
parent c043a4e55c
commit c812d896aa

View file

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