mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-15 17:53:31 +01:00
[AltStore] Fixes installation operation not completing when error occurs
This commit is contained in:
@@ -240,8 +240,12 @@ private extension AppManager
|
|||||||
/* Install */
|
/* Install */
|
||||||
let installOperation = InstallAppOperation(context: context)
|
let installOperation = InstallAppOperation(context: context)
|
||||||
installOperation.resultHandler = { (result) in
|
installOperation.resultHandler = { (result) in
|
||||||
guard let _ = self.process(result, context: context) else { return }
|
if let error = result.error
|
||||||
self.finishAppOperation(context)
|
{
|
||||||
|
context.error = error
|
||||||
|
}
|
||||||
|
|
||||||
|
self.finishAppOperation(context) // Finish operation no matter what.
|
||||||
}
|
}
|
||||||
progress.addChild(installOperation.progress, withPendingUnitCount: 30)
|
progress.addChild(installOperation.progress, withPendingUnitCount: 30)
|
||||||
installOperation.addDependency(sendAppOperation)
|
installOperation.addDependency(sendAppOperation)
|
||||||
|
|||||||
Reference in New Issue
Block a user