From: Jason A. Donenfeld Date: Sun, 10 Mar 2019 02:47:54 +0000 (+0100) Subject: wintun: Poll more often X-Git-Tag: 0.0.20190409~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66fb5caf023eb893b5d3fbbda5009749d217a68b;p=thirdparty%2Fwireguard-go.git wintun: Poll more often --- 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 } }