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