Fixed a special case of the amp protocol not being initialized during the very first startup.

This commit is contained in:
Griatch 2015-05-25 23:42:39 +02:00
parent c67aa4efc5
commit eb024e0cfb

View file

@ -359,7 +359,8 @@ class Evennia(object):
# 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 [p.at_server_shutdown() for p in PlayerDB.get_all_cached_instances()]
yield self.sessions.all_sessions_portal_sync()
if self.amp_protocol:
yield self.sessions.all_sessions_portal_sync()
else: # shutdown
yield [_SA(p, "is_connected", False) for p in PlayerDB.get_all_cached_instances()]
yield [o.at_server_shutdown() for o in ObjectDB.get_all_cached_instances()]