From: Jason A. Donenfeld Date: Thu, 23 Sep 2021 04:19:48 +0000 (+0200) Subject: UI: macOS: increase login detector file timeout X-Git-Tag: 1.0.15-26~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75b6925deb69581e93d5ea243a17d55a0a154878;p=thirdparty%2Fwireguard-apple.git UI: macOS: increase login detector file timeout Signed-off-by: Jason A. Donenfeld --- diff --git a/Sources/WireGuardApp/UI/macOS/LaunchedAtLoginDetector.swift b/Sources/WireGuardApp/UI/macOS/LaunchedAtLoginDetector.swift index 57003e5..94faa57 100644 --- a/Sources/WireGuardApp/UI/macOS/LaunchedAtLoginDetector.swift +++ b/Sources/WireGuardApp/UI/macOS/LaunchedAtLoginDetector.swift @@ -14,6 +14,6 @@ class LaunchedAtLoginDetector { let then = data.withUnsafeBytes { ptr in ptr.load(as: UInt64.self) } - return now - then <= 5000000000 + return now - then <= 20000000000 } }