From da16128bf6e4c4d4b9ce4f57475a531c529c4910 Mon Sep 17 00:00:00 2001 From: Herbert Vojcik Date: Wed, 31 Mar 2010 16:59:09 +0200 Subject: [PATCH] missing return after forceClose --- lib/net.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/net.js b/lib/net.js index 1fa358e4dcb..a3cb423ef01 100644 --- a/lib/net.js +++ b/lib/net.js @@ -610,6 +610,7 @@ function doConnect (socket, port, host) { connect(socket.fd, port, host); } catch (e) { socket.forceClose(e); + return; } // Don't start the read watcher until connection is established