fixed initialization bug #story[923]

This commit is contained in:
Peter Galloway
2017-05-17 17:55:21 +12:00
parent aaa3dc93f1
commit 95e353c14e
2 changed files with 5 additions and 0 deletions
@@ -188,6 +188,7 @@ public class CanvasController {
}
private void updateBoatGroup(BoatGroup boatGroup) {
System.out.println("StreamParser.boatPositions.size()2 = " + StreamParser.boatPositions.size());
PriorityBlockingQueue<BoatPositionPacket> movementQueue = StreamParser.boatPositions.get(boatGroup.getRaceId());
// giving the movementQueue a 5 packet buffer to account for slightly out of order packets
if (movementQueue.size() > 5){