From: Ben Beltran Date: Sun, 27 Aug 2017 22:29:19 +0000 (-0500) Subject: Close the socket server on stop X-Git-Url: https://git.r.bdr.sh/rbdr/sorting-hat/commitdiff_plain/ca4314685b5b77fcd48999bdb08a301767180fd4?ds=sidebyside;hp=-c Close the socket server on stop --- ca4314685b5b77fcd48999bdb08a301767180fd4 diff --git a/lib/sorting_hat.js b/lib/sorting_hat.js index 6ab1a09..e4d8d60 100644 --- a/lib/sorting_hat.js +++ b/lib/sorting_hat.js @@ -135,6 +135,8 @@ module.exports = class SortingHat { if (this._mindWave) { this._stopListening(); + this._socketServer.close(); + this._socketServer = null; this._mindWave = null; } else {