wintun: work around GetInterface staleness bug

This commit is contained in:
Jason A. Donenfeld
2019-05-03 00:11:59 +02:00
parent 46dbf54040
commit 2e988467c2
2 changed files with 31 additions and 19 deletions

View File

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