mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 15:26:30 +01:00
Fixed an unpuppeting bug for bots
This commit is contained in:
parent
004b76250f
commit
19b1ef8fc9
1 changed files with 5 additions and 1 deletions
|
|
@ -317,7 +317,11 @@ class DefaultPlayer(PlayerDB):
|
|||
# unpuppeting all objects and disconnecting the user, if any
|
||||
# sessions remain (should usually be handled from the
|
||||
# deleting command)
|
||||
self.unpuppet_object(session.sessid)
|
||||
try:
|
||||
self.unpuppet_object(session.sessid)
|
||||
except RuntimeError:
|
||||
# no puppet to disconnect from
|
||||
pass
|
||||
session.sessionhandler.disconnect(session, reason=_("Player being deleted."))
|
||||
self.scripts.stop()
|
||||
self.attributes.clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue