mirror of https://github.com/nodejs/node.git
Add todo about test-pipe.js and throwing on resume()
parent
544877d12e
commit
849792e46b
|
@ -538,7 +538,11 @@ Stream.prototype.pause = function () {
|
|||
|
||||
|
||||
Stream.prototype.resume = function () {
|
||||
if (this.fd === null) throw new Error('Cannot resume() closed Stream.');
|
||||
if (this.fd === null) {
|
||||
// TODO, FIXME: throwing here breaks test/simple/test-pipe.js
|
||||
// throw new Error('Cannot resume() closed Stream.');
|
||||
return;
|
||||
}
|
||||
this._readWatcher.stop();
|
||||
this._readWatcher.set(this.fd, true, false);
|
||||
this._readWatcher.start();
|
||||
|
|
Loading…
Reference in New Issue