mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 20:17:16 +02:00
Crash fix for what might be timing out sessions at the login prompt.
This commit is contained in:
parent
974c20efc7
commit
17bbc4c3b3
1 changed files with 4 additions and 2 deletions
|
|
@ -79,8 +79,10 @@ class PlayerSession(async_chat):
|
|||
Break the connection and do some accounting.
|
||||
"""
|
||||
pobject = self.get_pobject()
|
||||
pobject.set_flag("CONNECTED", False)
|
||||
pobject.get_location().emit_to_contents("%s has disconnected." % (pobject.get_name(),), exclude=pobject)
|
||||
if pobject:
|
||||
pobject.set_flag("CONNECTED", False)
|
||||
pobject.get_location().emit_to_contents("%s has disconnected." % (pobject.get_name(),), exclude=pobject)
|
||||
|
||||
async_chat.handle_close(self)
|
||||
self.logged_in = False
|
||||
session_mgr.remove_session(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue