From 8ddb334c2aaf0f389779d4d8d5d5b8754bf8c74d Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 22 Jul 2011 00:48:50 +0200 Subject: [PATCH] net_uv: emit 'close' event in Server.prototype.close() --- lib/net_uv.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/net_uv.js b/lib/net_uv.js index 3539b4865c..354b986045 100644 --- a/lib/net_uv.js +++ b/lib/net_uv.js @@ -635,6 +635,7 @@ Server.prototype.close = function() { this._handle.close(); this._handle = null; } + this.emit('close'); };