From 3af58ae846c7726a61b0e815d5d634b6aba3b035 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Sat, 29 Mar 2025 13:38:49 -0600 Subject: [PATCH] Increase em proxy timeout --- StikJIT/StikJITApp.swift | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/StikJIT/StikJITApp.swift b/StikJIT/StikJITApp.swift index 5183294..61dc67d 100644 --- a/StikJIT/StikJITApp.swift +++ b/StikJIT/StikJITApp.swift @@ -70,14 +70,7 @@ struct HeartbeatApp: App { } } else if let vpn_error { showAlert(title: "Error", message: "EM Proxy failed to connect: \(vpn_error)", showOk: true) { _ in - // Add code here to exit the application - exit(0) // This will terminate the app immediately - - // Or for a more graceful exit in iOS: - // UIApplication.shared.perform(#selector(NSXPCConnection.suspend)) - // DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { - // exit(0) - // } + exit(0) } } } @@ -207,7 +200,7 @@ struct HeartbeatApp: App { // Schedule the timeout if let workItem = timeoutWorkItem { - DispatchQueue.global().asyncAfter(deadline: .now() + 10, execute: workItem) + DispatchQueue.global().asyncAfter(deadline: .now() + 20, execute: workItem) } } }