net_uv: release uv handle in Socket.prototype.destroy()
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 21 Jul 2011 22:47:28 +0000 (00:47 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 21 Jul 2011 22:54:50 +0000 (00:54 +0200)
lib/net_uv.js

index e979b44..3539b48 100644 (file)
@@ -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() {