From 0d735431e9c606124248f439d6143c2ac5b64dfd Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 19 Mar 2020 11:53:53 -0700 Subject: [PATCH] Fixes endless refreshing if error occurs when legacy refreshing --- AltStore/Managing Apps/AppManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AltStore/Managing Apps/AppManager.swift b/AltStore/Managing Apps/AppManager.swift index 3ae606a1..1268cffb 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -508,7 +508,7 @@ private extension AppManager case .failure(ALTServerError.unknownRequest): // Fall back to installation if AltServer doesn't support newer provisioning profile requests. - app.managedObjectContext?.perform { + app.managedObjectContext?.performAndWait { // Must performAndWait to ensure we add operations before we return. let installProgress = self._install(app, group: group) { (result) in completionHandler(result) }