From 48d13fb321f3d1dca04c140368371a89d90976b0 Mon Sep 17 00:00:00 2001 From: Jonathan Young Date: Thu, 15 May 2014 20:01:31 +1000 Subject: [PATCH] Fix hang if patch download fails. --- installwizard_patch.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installwizard_patch.cpp b/installwizard_patch.cpp index ed37f6d..741887a 100644 --- a/installwizard_patch.cpp +++ b/installwizard_patch.cpp @@ -124,6 +124,10 @@ void InstallWizard_Patch::downloadFinished() if (!isCancelled && networkReply->error()) { ui->lblStatus->setText(networkReply->errorString()); + networkReply->abort(); + networkReply->deleteLater(); + isCancelled = true; + return; } networkReply->deleteLater();