aboutsummaryrefslogtreecommitdiffstats
path: root/tun/wintun
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-10 03:47:54 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-10 03:47:54 +0100
commit66fb5caf023eb893b5d3fbbda5009749d217a68b (patch)
treed689785f9d5bb3707601818eae154da1b7f73f8f /tun/wintun
parentuapi: make ipcerror conform to interface (diff)
downloadwireguard-go-66fb5caf023eb893b5d3fbbda5009749d217a68b.tar.xz
wireguard-go-66fb5caf023eb893b5d3fbbda5009749d217a68b.zip
wintun: Poll more often
Diffstat (limited to 'tun/wintun')
-rw-r--r--tun/wintun/wintun_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/wintun/wintun_windows.go b/tun/wintun/wintun_windows.go
index ff33476..9fb41c4 100644
--- a/tun/wintun/wintun_windows.go
+++ b/tun/wintun/wintun_windows.go
@@ -309,7 +309,7 @@ func CreateInterface(description string, hwndParent uintptr) (*Wintun, bool, err
if errWin, ok := err.(syscall.Errno); ok && errWin == windows.ERROR_FILE_NOT_FOUND {
// Wait and retry. TODO: Wait for a cancellable event instead.
err = errors.New("Time-out waiting for adapter to get ready")
- time.Sleep(time.Second)
+ time.Sleep(time.Second / 4)
continue
}
}