mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 06:25:56 +03:00
Fix OCUpdater: Also change status on network error or invalid XML
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
c043a4e55c
commit
c812d896aa
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue