Fixed a traceback if logging out from the unloggedin screen.
This commit is contained in:
parent
f2e971b392
commit
a1a2c99d1e
2 changed files with 6 additions and 3 deletions
|
|
@ -139,9 +139,9 @@ class ServerSession(Session):
|
|||
uaccount.last_login = datetime.now()
|
||||
uaccount.save()
|
||||
self.logged_in = False
|
||||
if not self.sessionhandler.sessions_from_player(player):
|
||||
player.is_connected = False
|
||||
self.sessionhandler.disconnect(self)
|
||||
if not self.sessionhandler.sessions_from_player(player):
|
||||
player.is_connected = False
|
||||
|
||||
def get_player(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue