aboutsummaryrefslogtreecommitdiff
path: root/lib/sorting_hat.js
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2017-08-27 17:29:19 -0500
committerBen Beltran <ben@nsovocal.com>2017-08-27 17:29:19 -0500
commitca4314685b5b77fcd48999bdb08a301767180fd4 (patch)
tree1b3d9642a6504d04abe11269107ee30218f4e889 /lib/sorting_hat.js
parent4d2c4ed3151e72ea2aabd9d27b447ea4cbd5724d (diff)
Close the socket server on stop
Diffstat (limited to 'lib/sorting_hat.js')
-rw-r--r--lib/sorting_hat.js2
1 files changed, 2 insertions, 0 deletions
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 {