When using udp protocol, if clients with id less than other clients disconnect, the server stops recognizing from which client each package come successfully. For example, if clients 1,2 and 3 are connected, and client 1 drops, all packages coming in from clients 2 and 3 come with id 0
This error is very easilly solved by changing
"for i, v in ipairs(self.clients) do"
to
"for i, v in pairs(self.clients) do"
in line 524ish since the function ipairs will stop iterating if it finds a missing index.
When using udp protocol, if clients with id less than other clients disconnect, the server stops recognizing from which client each package come successfully. For example, if clients 1,2 and 3 are connected, and client 1 drops, all packages coming in from clients 2 and 3 come with id 0
This error is very easilly solved by changing "for i, v in ipairs(self.clients) do" to "for i, v in pairs(self.clients) do" in line 524ish since the function ipairs will stop iterating if it finds a missing index.