mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
fix: improve error handling for image download failure
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user