]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
wintun: Cleanup
authorSimon Rozman <simon@rozman.si>
Thu, 7 Mar 2019 14:45:17 +0000 (15:45 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 7 Mar 2019 20:12:20 +0000 (21:12 +0100)
Signed-off-by: Simon Rozman <simon@rozman.si>
tun/wintun/wintun_windows.go

index ab865a916b370b7487ab403180943cb962a97e52..1c5c6c91a4235bb90eb817ada2d96c4c62ac5115 100644 (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
                                }
                        }