diff --git a/lib/net.js b/lib/net.js index 58da9f735f..c143f77ca1 100644 --- a/lib/net.js +++ b/lib/net.js @@ -587,7 +587,7 @@ function doConnect (socket, port, host) { socket.resume(); socket.readable = true; socket.writable = true; - socket._writeWatcher.callback = socket._doFlush; + socket._writeWatcher.callback = _doFlush; socket.emit('connect'); } else if (errno != EINPROGRESS) { socket.forceClose(errnoException(errno, 'connect'));