Move shutdown call outside for loop.

This commit is contained in:
dbrownidau
2020-02-10 14:09:56 +11:00
committed by dginovker
parent 71256292eb
commit 73da47ad18
@@ -207,8 +207,8 @@ public class GameEngine {
}
PlayerSave.saveGame((Client) p);
System.out.println("Saved game for " + p.playerName + ".");
scheduler.shutdown(); // Kills the tickloop thread if Exception is thrown.
}
scheduler.shutdown(); // Kills the tickloop thread if Exception is thrown.
}
}
}, 0, GameConstants.CYCLE_TIME, TimeUnit.MILLISECONDS);