From 368dea72fed3027c96a2e31c4c4af03dc730f8bd Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 7 Mar 2019 15:45:17 +0100 Subject: wintun: Cleanup Signed-off-by: Simon Rozman --- tun/wintun/wintun_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } -- cgit v1.2.3-59-g8ed1b