fix: improve error handling for image download failure

This commit is contained in:
uncor3
2025-11-20 06:07:29 +00:00
parent 9c4304f12a
commit 9e7ed776d1
+3 -1
View File
@@ -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;