projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
544877d
)
Add todo about test-pipe.js and throwing on resume()
author
Ryan Dahl
<ry@tinyclouds.org>
Thu, 18 Nov 2010 20:04:33 +0000
(12:04 -0800)
committer
Ryan Dahl
<ry@tinyclouds.org>
Fri, 19 Nov 2010 00:47:38 +0000
(16:47 -0800)
lib/net.js
patch
|
blob
|
history
diff --git
a/lib/net.js
b/lib/net.js
index
50cfc29
..
62abffd
100644
(file)
--- a/
lib/net.js
+++ b/
lib/net.js
@@
-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();