-[bug-fix]: UI Api invocation needs to be on UI Thread

This commit is contained in:
Magesh K
2024-11-10 16:16:44 +05:30
parent 6c32430329
commit dacc0c98ab

View File

@@ -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))
}
}
}
}