From 47fce059fdff7ebbbc5ed30bdecdd77b3a6c3032 Mon Sep 17 00:00:00 2001 From: Diego Rey Mendez Date: Fri, 20 Dec 2024 15:33:40 -0300 Subject: [PATCH] Fixes an issue in last commit --- .../Sources/VPNWidgetSupport/VPNWidgetTunnelController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LocalPackages/VPNiOS/Sources/VPNWidgetSupport/VPNWidgetTunnelController.swift b/LocalPackages/VPNiOS/Sources/VPNWidgetSupport/VPNWidgetTunnelController.swift index 379457a8a7..252fbce78e 100644 --- a/LocalPackages/VPNiOS/Sources/VPNWidgetSupport/VPNWidgetTunnelController.swift +++ b/LocalPackages/VPNiOS/Sources/VPNWidgetSupport/VPNWidgetTunnelController.swift @@ -75,7 +75,7 @@ public struct VPNWidgetTunnelController: Sendable { while true { try await Task.sleep(for: .milliseconds(500)) - if start.timeIntervalSinceNow > 30 + if abs(start.timeIntervalSinceNow) > 30 || (manager.connection.status != .connecting && manager.connection.status != .disconnecting) { break