* Changes to logging.

This commit is contained in:
LevelX2 2014-08-03 15:01:33 +02:00
parent 9bcbdbb73d
commit 9f6555240a
10 changed files with 57 additions and 23 deletions

View file

@ -69,11 +69,16 @@ public class GamesRoomImpl extends RoomImpl implements GamesRoom, Serializable {
private final ConcurrentHashMap<UUID, Table> tables = new ConcurrentHashMap<>();
public GamesRoomImpl() {
public GamesRoomImpl() {
updateExecutor.scheduleAtFixedRate(new Runnable() {
@Override
public void run() {
update();
public void run(){
try {
update();
} catch (Exception ex) {
logger.fatal("Games room update exception!", ex);
}
}
}, 2, 2, TimeUnit.SECONDS);
}