Skip to content

Commit b2f17f5

Browse files
committed
Closing listeningApp when server closes
* Fixes #348
1 parent 4b58b42 commit b2f17f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ Server.prototype.close = function() {
313313
});
314314
this.sockets = [];
315315
this.middleware.close();
316+
this.listeningApp.close();
316317
}
317318

318319
Server.prototype.sockWrite = function(sockets, type, data) {

0 commit comments

Comments
 (0)