summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-08-11 16:41:53 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-08-11 17:25:54 -0700
commit3a219de5867477d7954dd321d4f57949b499fe6f (patch)
treec4a7e2b5c145f0e3cca35a0b5d33abb92d308761 /lib
parent3cd694c9f3724abf61480bf98209f848102e7d7e (diff)
downloadnode-new-3a219de5867477d7954dd321d4f57949b499fe6f.tar.gz
net_uv: resume on closed net.Socket shouldn't crash
Diffstat (limited to 'lib')
-rw-r--r--lib/net_uv.js4
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();
+ }
};