check_purge() after removing a context as it could make a hook purgable
This commit is contained in:
parent
cf6a6eb598
commit
67b4aa69e2
1 changed files with 1 additions and 0 deletions
|
@ -244,6 +244,7 @@ class EventHook(object):
|
||||||
|
|
||||||
def remove_context(self, context: str):
|
def remove_context(self, context: str):
|
||||||
del self._context_hooks[context]
|
del self._context_hooks[context]
|
||||||
|
self.check_purge()
|
||||||
def has_context(self, context: str) -> bool:
|
def has_context(self, context: str) -> bool:
|
||||||
return context in self._context_hooks
|
return context in self._context_hooks
|
||||||
def purge_context(self, context: str):
|
def purge_context(self, context: str):
|
||||||
|
|
Loading…
Reference in a new issue