aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-03-07 15:45:17 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-07 21:12:20 +0100
commit368dea72fed3027c96a2e31c4c4af03dc730f8bd (patch)
tree4088cbc3eefc38efe2d9e4da4b6d7a3b8faa47be
parentwintun: Refactor network registry key name generation (diff)
downloadwireguard-go-368dea72fed3027c96a2e31c4c4af03dc730f8bd.tar.xz
wireguard-go-368dea72fed3027c96a2e31c4c4af03dc730f8bd.zip
wintun: Cleanup
Signed-off-by: Simon Rozman <simon@rozman.si>
-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 ab865a9..1c5c6c9 100644
--- a/tun/wintun/wintun_windows.go
+++ b/tun/wintun/wintun_windows.go
@@ -302,7 +302,7 @@ func CreateInterface(description string, hwndParent uintptr) (*Wintun, bool, err
if err != nil {
if errWin, ok := err.(syscall.Errno); ok && errWin == windows.ERROR_FILE_NOT_FOUND {
// Wait and retry. TODO: Wait for a cancellable event instead.
- time.Sleep(1000 * time.Millisecond)
+ time.Sleep(time.Second)
continue
}
}