File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
runner/src/main/java/com/codingame/gameengine/runner Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,7 @@ private void bootstrapPlayers() {
9595 throw new RuntimeException ("Bootstrap of all players failed to bootsrap" );
9696 }
9797
98- try {
99- Thread .sleep (300 ); // Arbitrary time to wait for bootstrap
100- } catch (InterruptedException e ) {
101- }
98+ bootstrapPlayersWait ();
10299
103100 for (Agent agent : players ) {
104101 BlockingQueue <String > queue = new ArrayBlockingQueue <>(1024 );
@@ -109,6 +106,14 @@ private void bootstrapPlayers() {
109106 }
110107 }
111108
109+ private void bootstrapPlayersWait () {
110+ try {
111+ // Arbitrary time to wait for bootstrap
112+ Thread .sleep (300 );
113+ } catch (InterruptedException e ) {
114+ }
115+ }
116+
112117 private void runAgents () {
113118 referee .execute ();
114119
You can’t perform that action at this time.
0 commit comments