mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Make manual Script.pause state survive full shutdown. Resolve #1838.
This commit is contained in:
parent
89af821978
commit
71840a14d3
1 changed files with 2 additions and 1 deletions
|
|
@ -382,7 +382,8 @@ class Evennia(object):
|
|||
yield [(p.unpuppet_all(), p.at_server_shutdown())
|
||||
for p in AccountDB.get_all_cached_instances()]
|
||||
yield ObjectDB.objects.clear_all_sessids()
|
||||
yield [(s.pause(manual_pause=False), s.at_server_shutdown()) for s in ScriptDB.get_all_cached_instances()]
|
||||
yield [(s.pause(manual_pause=s.attributes.get("_manual_pause", False)),
|
||||
s.at_server_shutdown()) for s in ScriptDB.get_all_cached_instances()]
|
||||
ServerConfig.objects.conf("server_restart_mode", "reset")
|
||||
self.at_server_cold_stop()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue