From b2f17f515c9731b6b5645143454d07fa75b2ed35 Mon Sep 17 00:00:00 2001 From: Nicholas Boll Date: Mon, 28 Dec 2015 15:14:10 -0700 Subject: [PATCH] Closing listeningApp when server closes * Fixes #348 --- lib/Server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Server.js b/lib/Server.js index 3808029cee..e9ffe00999 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -313,6 +313,7 @@ Server.prototype.close = function() { }); this.sockets = []; this.middleware.close(); + this.listeningApp.close(); } Server.prototype.sockWrite = function(sockets, type, data) {