mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2025-08-17 12:17:15 +02:00
wintun: try harder to open registry key
This sucks. Can we please find a deterministic way of doing this instead?
This commit is contained in:
@ -11,8 +11,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
numRetries = 25
|
numRetries = 100
|
||||||
retryTimeout = 100 * time.Millisecond
|
retryTimeout = 150 * time.Millisecond
|
||||||
)
|
)
|
||||||
|
|
||||||
func registryOpenKeyRetry(k registry.Key, path string, access uint32) (key registry.Key, err error) {
|
func registryOpenKeyRetry(k registry.Key, path string, access uint32) (key registry.Key, err error) {
|
||||||
|
Reference in New Issue
Block a user