Remove a little redundancy

v0.7.4-release
Ryan Dahl 2010-10-28 13:02:51 -07:00
parent 65dced730f
commit 5171da5a6c
1 changed files with 0 additions and 3 deletions

View File

@ -651,7 +651,6 @@ function doConnect (socket, port, host) {
// Don't start the read watcher until connection is established
socket._readWatcher.set(socket.fd, true, false);
socket._readWatcher.socket = socket;
// How to connect on POSIX: Wait for fd to become writable, then call
// socketError() if there isn't an error, we're connected. AFAIK this a
@ -660,8 +659,6 @@ function doConnect (socket, port, host) {
// Manual Page connect(2) under the error code EINPROGRESS.
socket._writeWatcher.set(socket.fd, false, true);
socket._writeWatcher.start();
socket._writeWatcher.socket = socket;
socket._writeWatcher.callback = onWritable;
}