]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
UI: macOS: increase login detector file timeout
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 23 Sep 2021 04:19:48 +0000 (06:19 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 23 Sep 2021 04:19:48 +0000 (06:19 +0200)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Sources/WireGuardApp/UI/macOS/LaunchedAtLoginDetector.swift

index 57003e50958ca1218d506cf31b736ea70d0e8961..94faa57fc1069374ef77f0707c7e9b34823562fb 100644 (file)
@@ -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
     }
 }