From 3a219de5867477d7954dd321d4f57949b499fe6f Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 11 Aug 2011 16:41:53 -0700 Subject: [PATCH] net_uv: resume on closed net.Socket shouldn't crash --- lib/net_uv.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); + } };