Deactivated call to replay because game savin is deactivated..

This commit is contained in:
LevelX2 2013-07-15 01:06:53 +02:00
parent 40c6ba2efc
commit 73fbfa1888

View file

@ -48,9 +48,11 @@ public class ReplayManager {
private ConcurrentHashMap<String, ReplaySession> replaySessions = new ConcurrentHashMap<String, ReplaySession>();
public void replayGame(UUID gameId, UUID userId) {
ReplaySession replaySession = new ReplaySession(gameId, userId);
replaySessions.put(gameId.toString() + userId.toString(), replaySession);
UserManager.getInstance().getUser(userId).replayGame(gameId);
if (1 == 2) { // deactivated because replay causes memor leaks
ReplaySession replaySession = new ReplaySession(gameId, userId);
replaySessions.put(gameId.toString() + userId.toString(), replaySession);
UserManager.getInstance().getUser(userId).replayGame(gameId);
}
}
public void startReplay(UUID gameId, UUID userId) {