diff options
author | Simon Rozman <simon@rozman.si> | 2019-03-07 15:45:17 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-07 21:12:20 +0100 |
commit | 368dea72fed3027c96a2e31c4c4af03dc730f8bd (patch) | |
tree | 4088cbc3eefc38efe2d9e4da4b6d7a3b8faa47be | |
parent | 9b22255cadab050a1788d02917907b7a67e4d358 (diff) |
wintun: Cleanup
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r-- | tun/wintun/wintun_windows.go | 2 |
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 } } |