Increase em proxy timeout

This commit is contained in:
Jackson Coxson 2025-03-29 13:38:49 -06:00
parent 6b71ed5f06
commit 3af58ae846
No known key found for this signature in database
GPG key ID: 5EAEF578E866A64B

View file

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