forked from External/mage
Changes to user / tournament / match handling.
This commit is contained in:
parent
ffa959d536
commit
eeb22c05ee
11 changed files with 55 additions and 50 deletions
|
|
@ -839,7 +839,12 @@ public class MageServerImpl implements MageServer {
|
|||
@Override
|
||||
public void execute() {
|
||||
UUID userId = SessionManager.getInstance().getSession(sessionId).getUserId();
|
||||
GameManager.getInstance().stopWatching(gameId, userId);
|
||||
User user = UserManager.getInstance().getUser(userId);
|
||||
if (user != null) {
|
||||
GameManager.getInstance().stopWatching(gameId, userId);
|
||||
user.removeGameWatchInfo(gameId);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue