mirror of https://github.com/v2ray/v2ray-core
Fix test break for windows: better error handling
parent
7718b9629c
commit
a32d6416e5
|
@ -33,5 +33,9 @@ func checkReadVConstraint(conn syscall.RawConn) (bool, error) {
|
|||
reason = err
|
||||
})
|
||||
|
||||
return isSocketReady, err
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
return isSocketReady, reason
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue