summaryrefslogtreecommitdiff
path: root/server/piztor/game_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/piztor/game_server.py')
-rw-r--r--server/piztor/game_server.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/piztor/game_server.py b/server/piztor/game_server.py
index cc1bd89..60b7015 100644
--- a/server/piztor/game_server.py
+++ b/server/piztor/game_server.py
@@ -885,6 +885,12 @@ class GameStartHandler(RequestHandler):
tunnel.add(PushScoreData(team1.score, team2.score))
tunnel.push()
+ logger.info("Forcing logout...")
+
+ for user in self.session.query(UserModel) \
+ .filter(UserModel.comp_id == u.comp_id):
+ user.regen_token()
+
logger.info("GAME START!")
self.session.commit()
return self.pack(struct.pack("!B", _StatusCode.sucess))