diff options
Diffstat (limited to 'mitmproxy/controller.py')
-rw-r--r-- | mitmproxy/controller.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mitmproxy/controller.py b/mitmproxy/controller.py index 72f8e001..d3ae1baa 100644 --- a/mitmproxy/controller.py +++ b/mitmproxy/controller.py @@ -33,6 +33,7 @@ Events = frozenset([ "error", "log", "done", + "tick", "script_change", ]) @@ -108,6 +109,8 @@ class Master(object): self.shutdown() def tick(self, timeout): + with self.handlecontext(): + self.addons("tick") changed = False try: mtype, obj = self.event_queue.get(timeout=timeout) |