aboutsummaryrefslogtreecommitdiff
path: root/installer/process
diff options
context:
space:
mode:
Diffstat (limited to 'installer/process')
-rw-r--r--installer/process/installworker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/installer/process/installworker.cpp b/installer/process/installworker.cpp
index a297420..d4f5c5b 100644
--- a/installer/process/installworker.cpp
+++ b/installer/process/installworker.cpp
@@ -91,6 +91,10 @@ bool InstallWorker::startWork() {
lastBytesReceived = 0;
lastTimeUpdate = QDateTime::fromMSecsSinceEpoch(0);
connect(reply, &QNetworkReply::finished, [=] {
+ if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() != 200) {
+ QApplication::exit(1);
+ return;
+ }
packageFile.flush();
packageFile.seek(0);