aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-05 16:56:17 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-06 01:52:31 +0100
commit71d26b4122a60cde28daad1bca179e0a5de26873 (patch)
treeb662977bd6aa76df621cda9f65ac57d3726b3995 /WireGuard/WireGuard/Tunnel/TunnelsManager.swift
parentwg-quick conf parser: Handle inline comments correctly (diff)
downloadwireguard-apple-71d26b4122a60cde28daad1bca179e0a5de26873.tar.xz
wireguard-apple-71d26b4122a60cde28daad1bca179e0a5de26873.zip
TunnelsManager: Wait for 6 seconds on deactivation instead of 5
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/Tunnel/TunnelsManager.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
index 70b69f9b..93f75ff7 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
@@ -438,7 +438,7 @@ class TunnelContainer: NSObject {
// If a tunnel gets activated in this time interval, it's stopped by the system automatically in ~25 seconds.
if self.status == .deactivating && tunnelProvider.connection.status == .disconnected {
self.deactivationTimer?.invalidate()
- let deactivationTimer = Timer(timeInterval: 5 /* seconds */, repeats: false) { [weak self] _ in
+ let deactivationTimer = Timer(timeInterval: 6 /* seconds */, repeats: false) { [weak self] _ in
guard let self = self else { return }
self.status = TunnelStatus(from: self.tunnelProvider.connection.status)
self.isActivateOnDemandEnabled = self.tunnelProvider.isOnDemandEnabled