1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 09:15:14 +01:00

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 err != nil {
if errWin, ok := err.(syscall.Errno); ok && errWin == windows.ERROR_FILE_NOT_FOUND { if errWin, ok := err.(syscall.Errno); ok && errWin == windows.ERROR_FILE_NOT_FOUND {
// Wait and retry. TODO: Wait for a cancellable event instead. // Wait and retry. TODO: Wait for a cancellable event instead.
time.Sleep(1000 * time.Millisecond) time.Sleep(time.Second)
continue continue
} }
} }