Skip to content

Commit 56fff71

Browse files
author
Julien
committed
fix(SDK): Removed useless bootstrapping time.
1 parent 0fe26f5 commit 56fff71

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

runner/src/main/java/com/codingame/gameengine/runner/GameRunner.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ private void bootstrapPlayers() {
9595
throw new RuntimeException("Bootstrap of all players failed to bootsrap");
9696
}
9797

98-
bootstrapPlayersWait();
99-
10098
for (Agent agent : players) {
10199
BlockingQueue<String> queue = new ArrayBlockingQueue<>(1024);
102100
AsynchronousWriter asyncWriter = new AsynchronousWriter(queue, agent.getInputStream());
@@ -106,14 +104,6 @@ private void bootstrapPlayers() {
106104
}
107105
}
108106

109-
private void bootstrapPlayersWait() {
110-
try {
111-
// Arbitrary time to wait for bootstrap
112-
Thread.sleep(300);
113-
} catch (InterruptedException e) {
114-
}
115-
}
116-
117107
private void runAgents() {
118108
referee.execute();
119109

0 commit comments

Comments
 (0)