diff options
author | Roopesh Chander <roop@roopc.net> | 2019-01-31 17:04:34 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-31 17:04:34 +0530 |
commit | 3b295785241c0a0a5ce56d39852d4162c2530965 (patch) | |
tree | a659922802519d9b68694e936d8dc5bab98ab0f1 /WireGuard/WireGuard/Tunnel/TunnelsManager.swift | |
parent | macOS: Tunnel detail: Reload runtime config every second (diff) | |
download | wireguard-apple-3b295785241c0a0a5ce56d39852d4162c2530965.tar.xz wireguard-apple-3b295785241c0a0a5ce56d39852d4162c2530965.zip |
Configure timers to fire even when tracking mouse events
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/Tunnel/TunnelsManager.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift index 3120f7d..70b69f9 100644 --- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift +++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift @@ -388,7 +388,7 @@ class TunnelContainer: NSObject { self.refreshStatus() } self.activationTimer = activationTimer - RunLoop.main.add(activationTimer, forMode: .default) + RunLoop.main.add(activationTimer, forMode: .common) } } } @@ -444,7 +444,7 @@ class TunnelContainer: NSObject { self.isActivateOnDemandEnabled = self.tunnelProvider.isOnDemandEnabled } self.deactivationTimer = deactivationTimer - RunLoop.main.add(deactivationTimer, forMode: .default) + RunLoop.main.add(deactivationTimer, forMode: .common) return } #endif |