net_uv: emit 'close' event in Server.prototype.close()
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 21 Jul 2011 22:48:50 +0000 (00:48 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 21 Jul 2011 22:54:50 +0000 (00:54 +0200)
lib/net_uv.js

index 3539b48..354b986 100644 (file)
@@ -635,6 +635,7 @@ Server.prototype.close = function() {
     this._handle.close();
     this._handle = null;
   }
+  this.emit('close');
 };