diff options
author | Simon Rozman <simon@rozman.si> | 2019-03-22 12:40:13 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-03-22 13:52:51 +0100 |
commit | 9748a52073e247ece6110cf43f036beb940c80e4 (patch) | |
tree | b750b995c710c360745cfd290494a5eb8e516715 | |
parent | 317d716d662f8b04be187df436565544de2eb1d5 (diff) |
tun: windows: Fix paused adapter test
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r-- | tun/tun_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/tun_windows.go b/tun/tun_windows.go index ea244f1..ce6ec8c 100644 --- a/tun/tun_windows.go +++ b/tun/tun_windows.go @@ -187,7 +187,7 @@ func (tun *NativeTun) getTUN() (read *os.File, write *os.File, err error) { } func (tun *NativeTun) shouldReopenHandle(err error) bool { - if pe, ok := err.(*os.PathError); ok && pe.Err == os.ErrClosed { + if pe, ok := err.(*os.PathError); ok && pe.Err == windows.ERROR_OPERATION_ABORTED { return !tun.close } return false |