mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 15:26:30 +01:00
Made sure to run clear_all_sessions() at cold start, just to catch the edge case where the server was killed without a chance to do its normal cleanup (which could then leave lingering sessids behind). Resolves #856.
This commit is contained in:
parent
c58f858339
commit
e67c2bb7d7
1 changed files with 5 additions and 0 deletions
|
|
@ -431,6 +431,11 @@ class Evennia(object):
|
|||
This is called only when the server starts "cold", i.e. after a
|
||||
shutdown or a reset.
|
||||
"""
|
||||
# We need to do this just in case the server was killed in a way where
|
||||
# the normal cleanup operations did not have time to run.
|
||||
from evennia.objects.models import ObjectDB
|
||||
ObjectDB.objects.clear_all_sessids()
|
||||
|
||||
if GUEST_ENABLED:
|
||||
for guest in PlayerDB.objects.all().filter(db_typeclass_path=settings.BASE_GUEST_TYPECLASS):
|
||||
for character in filter(None, guest.db._playable_characters):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue