Make sure a player associated with a connected Session is always tagged as is_connected. Resolves #1061.
This commit is contained in:
parent
14e9dafda2
commit
86f963fa71
1 changed files with 2 additions and 5 deletions
|
|
@ -264,6 +264,7 @@ class ServerSessionHandler(SessionHandler):
|
||||||
# webclient's session sharing
|
# webclient's session sharing
|
||||||
player = _PlayerDB.objects.get_player_from_uid(sess.uid)
|
player = _PlayerDB.objects.get_player_from_uid(sess.uid)
|
||||||
if player:
|
if player:
|
||||||
|
# this will set player.is_connected too
|
||||||
self.login(sess, player, force=True)
|
self.login(sess, player, force=True)
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|
@ -412,10 +413,6 @@ class ServerSessionHandler(SessionHandler):
|
||||||
# don't log in a session that is already logged in.
|
# don't log in a session that is already logged in.
|
||||||
return
|
return
|
||||||
|
|
||||||
# we have to check this first before uid has been assigned
|
|
||||||
# this session.
|
|
||||||
|
|
||||||
if not self.sessions_from_player(player):
|
|
||||||
player.is_connected = True
|
player.is_connected = True
|
||||||
|
|
||||||
# sets up and assigns all properties on the session
|
# sets up and assigns all properties on the session
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue