diff options
author | Bert Belder <bertbelder@gmail.com> | 2010-11-30 12:33:51 +0300 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2010-12-21 01:51:25 +0300 |
commit | dd3308851d454e6904da1aaea67af7222a6d5717 (patch) | |
tree | 8b29f91b16b13488e89ca02f1b9c472e33953d3e /src | |
parent | 4a2cb0780882e842345a8454be768142e9c7d283 (diff) |
Fix connect bug
Diffstat (limited to 'src')
-rw-r--r-- | src/node_net.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_net.cc b/src/node_net.cc index b8e6c2d0edc..8fe579c7e5a 100644 --- a/src/node_net.cc +++ b/src/node_net.cc @@ -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")); } } |