diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/hall/HallServer.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/hall/HallServer.java index e3e5a2f19..f968b109e 100644 --- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/hall/HallServer.java +++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/hall/HallServer.java @@ -21,7 +21,7 @@ public class HallServer extends AbstractServer { private Map _supportedFormats = new HashMap(); private Map _awaitingTables = new ConcurrentHashMap(); - private Map _runningTables = Collections.synchronizedMap(new LinkedHashMap()); + private Map _runningTables = new ConcurrentHashMap(); private int _nextTableId = 1; private final int _playerInactivityPeriod = 1000 * 10; // 10 seconds @@ -128,6 +128,7 @@ public class HallServer extends AbstractServer { } public void processTables(String participantId, HallInfoVisitor visitor) { + _lastVisitedPlayers.put(participantId, System.currentTimeMillis()); visitor.playerIsWaiting(isPlayerWaiting(participantId)); Map copy = new HashMap(_awaitingTables); diff --git a/gemp-lotr/todo.txt b/gemp-lotr/todo.txt index ff696cf90..c66325b49 100644 --- a/gemp-lotr/todo.txt +++ b/gemp-lotr/todo.txt @@ -20,7 +20,8 @@ Optional: 4. Modify the Blueprint hierarchy to return possible return objects (PlayEventAction), TriggeredAction, etc. Use final methods were possible to avoid implementation errors on new cards added. 10. Add active/all cards switch to the user interface. -32. +33. When a player stops responding during preparation time of the game, the game is not properly finished. +34. DONE: 1. Introduce AbstractPermanent into Blueprint hierarchy. @@ -46,3 +47,4 @@ with Filters.sameCard(...) filter. 27. Show list of players in the hall. 28. Introduce deck validation for FotR block format. 29. Player registration and login. +32. Created tables do not disappear when the player closes the browser.