net_uv: release uv handle in Socket.prototype.destroy()

v0.7.4-release
Ben Noordhuis 2011-07-22 00:47:28 +02:00
parent 59b04427d3
commit 07bcdc2f51
1 changed files with 1 additions and 0 deletions

View 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() {