diff --git a/lib/net.js b/lib/net.js index 0aa087ad7e7e9c..d498efb184e713 100644 --- a/lib/net.js +++ b/lib/net.js @@ -208,10 +208,6 @@ Socket.prototype._unrefTimer = function _unrefTimer() { // the user has called .end(), and all the bytes have been // sent out to the other side. -// If allowHalfOpen is false, or if the readable side has -// ended already, then destroy. -// If allowHalfOpen is true, then we need to do a shutdown, -// so that only the writable side will be cleaned up. function onSocketFinish() { // If still connecting - defer handling 'finish' until 'connect' will happen if (this.connecting) {