From 9e7ed776d1b223fa907994407edf2cc8ccd18321 Mon Sep 17 00:00:00 2001 From: uncor3 Date: Thu, 20 Nov 2025 06:07:29 +0000 Subject: [PATCH] fix: improve error handling for image download failure --- src/devdiskimagehelper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/devdiskimagehelper.cpp b/src/devdiskimagehelper.cpp index d08af6a..dd5b108 100644 --- a/src/devdiskimagehelper.cpp +++ b/src/devdiskimagehelper.cpp @@ -98,7 +98,6 @@ void DevDiskImageHelper::start() // FIXME:we dont have developer disk images for ios 6 and below if (deviceMajorVersion > 5) { - // TODO: maybe check isMountAvailable and finishWithFailure if false const bool isMountAvailable = DevDiskManager::sharedInstance()->downloadCompatibleImage( m_device, [this](bool success) { @@ -108,6 +107,9 @@ void DevDiskImageHelper::start() finishWithError("Failed to download compatible image."); } }); + if (!isMountAvailable) { + finishWithError("Failed to download compatible image."); + } } else { finishWithSuccess(); return;