wintun: Cleanup

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2019-03-07 15:45:17 +01:00 committed by Jason A. Donenfeld
parent 9b22255cad
commit 368dea72fe

View file

@ -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
}
}