Closed StephenTurley closed 10 years ago
Given a single connection, call the following code:
for(Connection c : server.getConnections()) { PlayersPacket playersPacket = new PlayersPacket(); playersPacket.playerConnections = getPlayerConnections(); server.sendToUDP(c.getID() ,playersPacket); //this fails //server.sendToUDP(c.getID() - 1 ,playersPacket); //this works }
The client will get disconnected unless the ID is reduced from 1 to 0
kryonet-2.18*
After looking through Kryonet source, I've determined this has to be an issue on my end. Closing.
Given a single connection, call the following code:
The client will get disconnected unless the ID is reduced from 1 to 0