]> git.r.bdr.sh - rbdr/sorting-hat/commitdiff
Close the socket server on stop
authorBen Beltran <redacted>
Sun, 27 Aug 2017 22:29:19 +0000 (17:29 -0500)
committerBen Beltran <redacted>
Sun, 27 Aug 2017 22:29:19 +0000 (17:29 -0500)
lib/sorting_hat.js

index 6ab1a09f2b2c74a568660b3972a084a67094c821..e4d8d60d503afbd7caaa64f1bf712af979459ecf 100644 (file)
@@ -135,6 +135,8 @@ module.exports = class SortingHat {
     if (this._mindWave) {
 
       this._stopListening();
+      this._socketServer.close();
+      this._socketServer = null;
       this._mindWave = null;
     }
     else {