Skip to content

Commit

Permalink
Fixes an issue in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoreymendez committed Dec 20, 2024
1 parent 4470c03 commit 47fce05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47fce05

Please sign in to comment.