|
@ -641,6 +641,7 @@ Stream.prototype.pause = function () { |
|
|
|
|
|
|
|
|
Stream.prototype.resume = function () { |
|
|
Stream.prototype.resume = function () { |
|
|
if (this.fd === null) throw new Error('Cannot resume() closed Stream.'); |
|
|
if (this.fd === null) throw new Error('Cannot resume() closed Stream.'); |
|
|
|
|
|
this._readWatcher.stop(); |
|
|
this._readWatcher.set(this.fd, true, false); |
|
|
this._readWatcher.set(this.fd, true, false); |
|
|
this._readWatcher.start(); |
|
|
this._readWatcher.start(); |
|
|
}; |
|
|
}; |
|
|