diff --git a/tun/tun_windows.go b/tun/tun_windows.go index e949c05..a132d06 100644 --- a/tun/tun_windows.go +++ b/tun/tun_windows.go @@ -104,7 +104,7 @@ func CreateTUNWithRequestedGUID(ifname string, requestedGUID *windows.GUID, mtu tun.session, err = wt.StartSession(0x800000) // Ring capacity, 8 MiB if err != nil { - _, err = tun.wt.Delete(false) + tun.wt.Delete(false) close(tun.events) return nil, fmt.Errorf("Error starting session: %w", err) }