From 75b6925deb69581e93d5ea243a17d55a0a154878 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 23 Sep 2021 06:19:48 +0200 Subject: [PATCH] UI: macOS: increase login detector file timeout Signed-off-by: Jason A. Donenfeld --- Sources/WireGuardApp/UI/macOS/LaunchedAtLoginDetector.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }