diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-08-11 16:41:53 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-08-11 17:25:54 -0700 |
commit | 3a219de5867477d7954dd321d4f57949b499fe6f (patch) | |
tree | c4a7e2b5c145f0e3cca35a0b5d33abb92d308761 /lib | |
parent | 3cd694c9f3724abf61480bf98209f848102e7d7e (diff) | |
download | node-new-3a219de5867477d7954dd321d4f57949b499fe6f.tar.gz |
net_uv: resume on closed net.Socket shouldn't crash
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net_uv.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/net_uv.js b/lib/net_uv.js index 09a549d2c3..bd79b2459c 100644 --- a/lib/net_uv.js +++ b/lib/net_uv.js @@ -167,7 +167,9 @@ Socket.prototype.pause = function() { Socket.prototype.resume = function() { - this._handle.readStart(); + if (this._handle) { + this._handle.readStart(); + } }; |