From 671a12b89c875e345bbf6c95787b7a5b8b548947 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Tue, 8 Sep 2020 16:40:07 -0700 Subject: [PATCH] Extends additional intent handling time to 9 seconds --- 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 3dc494b7..f42a3924 100644 --- a/AltStore/Intents/IntentHandler.swift +++ b/AltStore/Intents/IntentHandler.swift @@ -34,8 +34,9 @@ class IntentHandler: NSObject, RefreshAllIntentHandling completion(RefreshAllIntentResponse(code: .ready, userActivity: nil)) } - // Give ourselves 5 extra seconds before starting timeout timer. - self.queue.asyncAfter(deadline: .now() + 5.0) { + // Give ourselves 9 extra seconds before starting handle() timeout timer. + // 10 seconds or longer results in timeout regardless. + self.queue.asyncAfter(deadline: .now() + 9.0) { self.finish(intent, response: RefreshAllIntentResponse(code: .ready, userActivity: nil)) }