Added fairness to mockOuput list so the index will correspond to the player in order that they entered the hosted game, #story[1010]
This commit is contained in:
@@ -29,7 +29,7 @@ public class ConnectionAcceptor implements Runnable {
|
||||
*/
|
||||
private ServerSocket serverSocket;
|
||||
//mock outputs
|
||||
private ArrayBlockingQueue<MockOutput> mockOutputList = new ArrayBlockingQueue<>(16);
|
||||
private ArrayBlockingQueue<MockOutput> mockOutputList = new ArrayBlockingQueue<>(16, true);
|
||||
//latest messages
|
||||
private LatestMessages latestMessages;
|
||||
//Acknowledgement number for packets
|
||||
@@ -198,5 +198,4 @@ public class ConnectionAcceptor implements Runnable {
|
||||
return this.ackNumber;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user