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?hp=4d2c4ed3151e72ea2aabd9d27b447ea4cbd5724d Close the socket server on stop --- 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 {