From dd3308851d454e6904da1aaea67af7222a6d5717 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 30 Nov 2010 10:33:51 +0100 Subject: [PATCH] Fix connect bug --- src/node_net.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_net.cc b/src/node_net.cc index b8e6c2d0ed..8fe579c7e5 100644 --- a/src/node_net.cc +++ b/src/node_net.cc @@ -450,7 +450,7 @@ static Handle 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")); } }