diff --git a/lib/net.js b/lib/net.js index 80e3837666..5ffbea7aa5 100644 --- a/lib/net.js +++ b/lib/net.js @@ -236,7 +236,6 @@ Object.defineProperty(Socket.prototype, 'bufferSize', { Socket.prototype.pause = function() { - if (this._paused) return; this._paused = true; if (this._connecting) { // will actually pause once the handle is established. @@ -249,7 +248,6 @@ Socket.prototype.pause = function() { Socket.prototype.resume = function() { - if (!this._paused) return; this._paused = false; if (this._connecting) { // will actually resume once the handle is established.