Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-07-22 02:47:28 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2011-07-22 02:54:50 +0400
commit07bcdc2f5135c77baf37d4d037f88e8f7b06af5f (patch)
tree0b2640c85c2ed86a62125d692c0bcb27ec9ad69d /lib
parent59b04427d36b3b2f271daf7be3010b8a915c84b4 (diff)
net_uv: release uv handle in Socket.prototype.destroy()
Diffstat (limited to 'lib')
-rw-r--r--lib/net_uv.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net_uv.js b/lib/net_uv.js
index e979b441890..3539b4865c5 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() {