]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
wintun: try harder to open registry key
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 29 Apr 2019 12:00:49 +0000 (14:00 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 29 Apr 2019 12:00:49 +0000 (14:00 +0200)
This sucks. Can we please find a deterministic way of doing this
instead?

tun/wintun/registryhacks_windows.go

index 62a629a49db051479ac3ba79f3cf8d90554890ec..bbcc0207526955c5226affffcb99755dd7e3995a 100644 (file)
@@ -11,8 +11,8 @@ import (
 )
 
 const (
-       numRetries = 25
-       retryTimeout = 100 * time.Millisecond
+       numRetries = 100
+       retryTimeout = 150 * time.Millisecond
 )
 
 func registryOpenKeyRetry(k registry.Key, path string, access uint32) (key registry.Key, err error) {