Skip to content

Commit 724b3fd

Browse files
kapouerdarrachequesne
authored andcommitted
[fix] Close and free webSocketServer (#393)
1 parent 12ee477 commit 724b3fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ Server.prototype.close = function(){
186186
this.clients[i].close(true);
187187
}
188188
}
189+
if (this.ws) {
190+
debug('closing webSocketServer');
191+
this.ws.close();
192+
delete this.ws;
193+
}
189194
return this;
190195
};
191196

0 commit comments

Comments
 (0)