mirror of
https://github.com/evennia/evennia.git
synced 2026-04-06 16:44:08 +02:00
Fixed flush protection for instances, memory is successfully made available on an idmapper flush now.
This commit is contained in:
parent
4b8ed234fd
commit
58af67bdf2
6 changed files with 47 additions and 35 deletions
|
|
@ -14,6 +14,7 @@ See CmdHandler for practical examples on how to apply cmdsets
|
|||
together to create interesting in-game effects.
|
||||
"""
|
||||
|
||||
from weakref import WeakKeyDictionary
|
||||
from django.utils.translation import ugettext as _
|
||||
from src.utils.utils import inherits_from, is_iter
|
||||
__all__ = ("CmdSet",)
|
||||
|
|
@ -159,7 +160,7 @@ class CmdSet(object):
|
|||
|
||||
# initialize system
|
||||
self.at_cmdset_creation()
|
||||
self._contains_cache = {}
|
||||
self._contains_cache = WeakKeyDictionary()#{}
|
||||
|
||||
# Priority-sensitive merge operations for cmdsets
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue