Browse Source

Stop watcher before calling .set() in Stream.prototype.resume

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
ec1589875c
  1. 1
      lib/net.js

1
lib/net.js

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

Loading…
Cancel
Save