From ca4314685b5b77fcd48999bdb08a301767180fd4 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Sun, 27 Aug 2017 17:29:19 -0500 Subject: Close the socket server on stop --- lib/sorting_hat.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sorting_hat.js') 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 { -- cgit