aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/addonmanager.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-04-07 11:46:34 +1200
committerAldo Cortesi <aldo@corte.si>2018-04-23 10:28:18 +1200
commit44016a0de519469792769f7b78c37e7de9bfde24 (patch)
treebd077442d797487df8aff9d7c0d3f6b76633b337 /mitmproxy/addonmanager.py
parentf6b606b3643d0f447dac9830d25ac1853f8610fe (diff)
downloadmitmproxy-44016a0de519469792769f7b78c37e7de9bfde24.tar.gz
mitmproxy-44016a0de519469792769f7b78c37e7de9bfde24.tar.bz2
mitmproxy-44016a0de519469792769f7b78c37e7de9bfde24.zip
asyncio: shift script reloading out of the tick event
The tick event is a nasty compromise, left over from when we didn't have an event loop. This is the first patch in a series that explores moving our built-in addons to managing coroutines on the eventloop directly for periodic tasks.
Diffstat (limited to 'mitmproxy/addonmanager.py')
-rw-r--r--mitmproxy/addonmanager.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mitmproxy/addonmanager.py b/mitmproxy/addonmanager.py
index 9d0e7069..ac561073 100644
--- a/mitmproxy/addonmanager.py
+++ b/mitmproxy/addonmanager.py
@@ -140,6 +140,7 @@ class AddonManager:
"""
for i in self.chain:
self.remove(i)
+ self.lookup = {}
def get(self, name):
"""