Remove a little redundancy
This commit is contained in:
parent
65dced730f
commit
5171da5a6c
@ -651,7 +651,6 @@ function doConnect (socket, port, host) {
|
|||||||
|
|
||||||
// Don't start the read watcher until connection is established
|
// Don't start the read watcher until connection is established
|
||||||
socket._readWatcher.set(socket.fd, true, false);
|
socket._readWatcher.set(socket.fd, true, false);
|
||||||
socket._readWatcher.socket = socket;
|
|
||||||
|
|
||||||
// How to connect on POSIX: Wait for fd to become writable, then call
|
// 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
|
// 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.
|
// Manual Page connect(2) under the error code EINPROGRESS.
|
||||||
socket._writeWatcher.set(socket.fd, false, true);
|
socket._writeWatcher.set(socket.fd, false, true);
|
||||||
socket._writeWatcher.start();
|
socket._writeWatcher.start();
|
||||||
socket._writeWatcher.socket = socket;
|
|
||||||
socket._writeWatcher.callback = onWritable;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user