From: Jason A. Donenfeld Date: Mon, 29 Apr 2019 12:00:49 +0000 (+0200) Subject: wintun: try harder to open registry key X-Git-Tag: 0.0.20190517~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=247e14693adb3d7a337ec57a4d2db374fb9099cd;p=thirdparty%2Fwireguard-go.git wintun: try harder to open registry key This sucks. Can we please find a deterministic way of doing this instead? --- 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) {