diff --git a/lib/ClientManager.js b/lib/ClientManager.js index e1a7838..b338c0a 100644 --- a/lib/ClientManager.js +++ b/lib/ClientManager.js @@ -32,9 +32,10 @@ class ClientManager { const clients = this.clients; const stats = this.stats; - // can't ask for id already is use + // If id is already in use, override id if (clients[id]) { - id = hri.random(); + //id = hri.random(); + this.removeClient(id); } const maxSockets = this.opt.max_tcp_sockets;