made session thread start
This commit is contained in:
@@ -27,6 +27,7 @@ public class Server {
|
|||||||
|
|
||||||
private void run() {
|
private void run() {
|
||||||
setTestGames();
|
setTestGames();
|
||||||
|
this.sessionThread.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setTestGames() {
|
private void setTestGames() {
|
||||||
@@ -34,9 +35,10 @@ public class Server {
|
|||||||
gameThreads.put("game " + i, new Thread(new GameController(i)));
|
gameThreads.put("game " + i, new Thread(new GameController(i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String thread : gameThreads.keySet()) {
|
for (String game : gameThreads.keySet()) {
|
||||||
gameThreads.get(thread).start();
|
gameThreads.get(game).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user