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
|
|
@ -8,6 +8,9 @@ too game-specific to be a part of the main Evennia game server. These
|
||||||
modules are not used unless you explicitly import them. See each file
|
modules are not used unless you explicitly import them. See each file
|
||||||
for more detailed instructions on how to install.
|
for more detailed instructions on how to install.
|
||||||
|
|
||||||
|
Modules in this folder is distributed under the same licence as
|
||||||
|
Evennia unless noted differently in the individual module.
|
||||||
|
|
||||||
If you want to edit, tweak or expand on this code you should copy the
|
If you want to edit, tweak or expand on this code you should copy the
|
||||||
things you want from here into game/gamesrc and change them there.
|
things you want from here into game/gamesrc and change them there.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -139,9 +139,9 @@ class ServerSession(Session):
|
||||||
uaccount.last_login = datetime.now()
|
uaccount.last_login = datetime.now()
|
||||||
uaccount.save()
|
uaccount.save()
|
||||||
self.logged_in = False
|
self.logged_in = False
|
||||||
self.sessionhandler.disconnect(self)
|
|
||||||
if not self.sessionhandler.sessions_from_player(player):
|
if not self.sessionhandler.sessions_from_player(player):
|
||||||
player.is_connected = False
|
player.is_connected = False
|
||||||
|
self.sessionhandler.disconnect(self)
|
||||||
|
|
||||||
def get_player(self):
|
def get_player(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue