mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-17 18:53:40 +01:00
Cancels AltBackup installation if error has already been thrown
This commit is contained in:
@@ -1325,6 +1325,12 @@ private extension AppManager
|
|||||||
{
|
{
|
||||||
let progress = Progress.discreteProgress(totalUnitCount: 100)
|
let progress = Progress.discreteProgress(totalUnitCount: 100)
|
||||||
|
|
||||||
|
if let error = context.error
|
||||||
|
{
|
||||||
|
completionHandler(.failure(error))
|
||||||
|
return progress
|
||||||
|
}
|
||||||
|
|
||||||
guard let application = ALTApplication(fileURL: app.fileURL) else {
|
guard let application = ALTApplication(fileURL: app.fileURL) else {
|
||||||
completionHandler(.failure(OperationError.appNotFound))
|
completionHandler(.failure(OperationError.appNotFound))
|
||||||
return progress
|
return progress
|
||||||
@@ -1391,6 +1397,8 @@ private extension AppManager
|
|||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
print(error)
|
print(error)
|
||||||
|
|
||||||
|
context.error = error
|
||||||
}
|
}
|
||||||
|
|
||||||
operation.finish()
|
operation.finish()
|
||||||
|
|||||||
Reference in New Issue
Block a user