Fix connect bug
This commit is contained in:
parent
4a2cb07808
commit
dd3308851d
@ -450,7 +450,7 @@ static Handle<Value> Connect(const Arguments& args) {
|
|||||||
|
|
||||||
if (r == INVALID_SOCKET) {
|
if (r == INVALID_SOCKET) {
|
||||||
int wsaErrno = WSAGetLastError();
|
int wsaErrno = WSAGetLastError();
|
||||||
if (wsaErrno != WSAEALREADY && wsaErrno != WSAEINPROGRESS) {
|
if (wsaErrno != WSAEWOULDBLOCK && wsaErrno != WSAEINPROGRESS) {
|
||||||
return ThrowException(ErrnoException(wsaErrno, "connect"));
|
return ThrowException(ErrnoException(wsaErrno, "connect"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user