From 362f833643d247e95d6fdcfe889c8488ed4d62f3 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Fri, 19 Jul 2019 16:09:45 -0700 Subject: [PATCH] [AltStore] Fixes installation operation not completing when error occurs --- AltStore/Apps/AppManager.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/AltStore/Apps/AppManager.swift b/AltStore/Apps/AppManager.swift index f252a842..75c39ea5 100644 --- a/AltStore/Apps/AppManager.swift +++ b/AltStore/Apps/AppManager.swift @@ -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)