override id

This commit is contained in:
Otto0913
2023-02-07 22:29:01 +09:00
parent 78c06f8fc4
commit 27751964c2
+3 -2
View File
@@ -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;