summaryrefslogtreecommitdiffhomepage
path: root/tun
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-29 14:00:49 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-29 14:00:49 +0200
commit247e14693adb3d7a337ec57a4d2db374fb9099cd (patch)
tree348a0e9596f4422625b1c2233596d130d2b760a3 /tun
parent3945a299ff0143459ca8d9bd37ec45ecd7d276bc (diff)
wintun: try harder to open registry key
This sucks. Can we please find a deterministic way of doing this instead?
Diffstat (limited to 'tun')
-rw-r--r--tun/wintun/registryhacks_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/wintun/registryhacks_windows.go b/tun/wintun/registryhacks_windows.go
index 62a629a..bbcc020 100644
--- a/tun/wintun/registryhacks_windows.go
+++ b/tun/wintun/registryhacks_windows.go
@@ -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) {