made session thread start

This commit is contained in:
Sem van der Hoeven
2020-05-12 13:36:29 +02:00
parent 1c7b47dc57
commit 7f0b2b24fb

View File

@@ -27,6 +27,7 @@ public class Server {
private void run() {
setTestGames();
this.sessionThread.start();
}
private void setTestGames() {
@@ -34,9 +35,10 @@ public class Server {
gameThreads.put("game " + i, new Thread(new GameController(i)));
}
for (String thread : gameThreads.keySet()) {
gameThreads.get(thread).start();
for (String game : gameThreads.keySet()) {
gameThreads.get(game).start();
}
}
}