check_purge() after removing a context as it could make a hook purgable

This commit is contained in:
jesopo 2019-06-05 16:56:02 +01:00
parent cf6a6eb598
commit 67b4aa69e2

View file

@ -244,6 +244,7 @@ class EventHook(object):
def remove_context(self, context: str):
del self._context_hooks[context]
self.check_purge()
def has_context(self, context: str) -> bool:
return context in self._context_hooks
def purge_context(self, context: str):