aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-05 16:56:02 +0100
committerGravatar jesopo2019-06-05 16:56:02 +0100
commit67b4aa69e2c804bb6e5a962b4e5c7163bcaf4036 (patch)
tree4df1a5e3654dd94c78cc8ccd895ccb70d5ae7f68
parentUpdate CHANGELOG (diff)
signature
check_purge() after removing a context as it could make a hook purgable
-rw-r--r--src/EventManager.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/EventManager.py b/src/EventManager.py
index 473386c2..2f1e8e23 100644
--- a/src/EventManager.py
+++ b/src/EventManager.py
@@ -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):