From 6568e5918aec5562b364edd3314c298cae3ae834 Mon Sep 17 00:00:00 2001 From: Magesh K <47920326+mahee96@users.noreply.github.com> Date: Sun, 10 Nov 2024 16:16:44 +0530 Subject: [PATCH] -[bug-fix]: UI Api invocation needs to be on UI Thread --- AltStore/Intents/IntentHandler.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AltStore/Intents/IntentHandler.swift b/AltStore/Intents/IntentHandler.swift index 641b00b3..2d2ca70e 100644 --- a/AltStore/Intents/IntentHandler.swift +++ b/AltStore/Intents/IntentHandler.swift @@ -118,8 +118,9 @@ private extension IntentHandler { // Queue response in case refreshing finishes after confirm() but before handle(). self.queuedResponses[intent] = response - - UIApplication.shared.perform(#selector(NSXPCConnection.suspend)) + DispatchQueue.main.async { + UIApplication.shared.perform(#selector(NSXPCConnection.suspend)) + } } } }