Fixed a special case of the amp protocol not being initialized during the very first startup.
This commit is contained in:
parent
c67aa4efc5
commit
eb024e0cfb
1 changed files with 2 additions and 1 deletions
|
|
@ -359,6 +359,7 @@ class Evennia(object):
|
||||||
# like shutdown but don't unset the is_connected flag and don't disconnect sessions
|
# like shutdown but don't unset the is_connected flag and don't disconnect sessions
|
||||||
yield [o.at_server_shutdown() for o in ObjectDB.get_all_cached_instances()]
|
yield [o.at_server_shutdown() for o in ObjectDB.get_all_cached_instances()]
|
||||||
yield [p.at_server_shutdown() for p in PlayerDB.get_all_cached_instances()]
|
yield [p.at_server_shutdown() for p in PlayerDB.get_all_cached_instances()]
|
||||||
|
if self.amp_protocol:
|
||||||
yield self.sessions.all_sessions_portal_sync()
|
yield self.sessions.all_sessions_portal_sync()
|
||||||
else: # shutdown
|
else: # shutdown
|
||||||
yield [_SA(p, "is_connected", False) for p in PlayerDB.get_all_cached_instances()]
|
yield [_SA(p, "is_connected", False) for p in PlayerDB.get_all_cached_instances()]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue