fixed some timing errors

This commit is contained in:
BetaSteward 2010-10-29 01:59:45 +00:00
parent 875614b96c
commit 93120eedea
3 changed files with 13 additions and 5 deletions

View file

@ -174,7 +174,9 @@ public class GameController implements GameCallback {
private synchronized void startGame() {
if (gameFuture == null) {
for (final Entry<UUID, GameSession> entry: gameSessions.entrySet()) {
entry.getValue().init(getGameView(entry.getKey()));
if (!entry.getValue().init(getGameView(entry.getKey()))) {
logger.severe("Unable to initialize client");
}
}
GameWorker worker = new GameWorker(game, this);
gameFuture = gameExecutor.submit(worker);