From 07bcdc2f5135c77baf37d4d037f88e8f7b06af5f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 22 Jul 2011 00:47:28 +0200 Subject: [PATCH] net_uv: release uv handle in Socket.prototype.destroy() --- lib/net_uv.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/net_uv.js b/lib/net_uv.js index e979b44..3539b48 100644 --- a/lib/net_uv.js +++ b/lib/net_uv.js @@ -219,6 +219,7 @@ Socket.prototype.destroy = function(exception) { debug('close ' + this.fd); if (this._handle) { this._handle.close(); + this._handle = null; } process.nextTick(function() { -- 2.7.4