Fix connect bug

This commit is contained in:
Bert Belder 2010-11-30 10:33:51 +01:00
parent 4a2cb07808
commit dd3308851d

View File

@ -450,7 +450,7 @@ static Handle<Value> Connect(const Arguments& args) {
if (r == INVALID_SOCKET) {
int wsaErrno = WSAGetLastError();
if (wsaErrno != WSAEALREADY && wsaErrno != WSAEINPROGRESS) {
if (wsaErrno != WSAEWOULDBLOCK && wsaErrno != WSAEINPROGRESS) {
return ThrowException(ErrnoException(wsaErrno, "connect"));
}
}