Move shutdown call outside for loop.
This commit is contained in:
1 parent
71256292eb
commit
73da47ad18
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user