From 3c644274e9d54ef59e5123eeae9e8b4978d29d9e Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 8 May 2016 16:49:36 -0600 Subject: [PATCH] mitmdump: make sure to always call done() in inline scripts --- mitmproxy/dump.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py index c308adf0d..a077438b1 100644 --- a/mitmproxy/dump.py +++ b/mitmproxy/dump.py @@ -346,5 +346,6 @@ class DumpMaster(flow.FlowMaster): def run(self): # pragma: no cover if self.o.rfile and not self.o.keepserving: + self.shutdown() # We need to manually call .shutdown() here, e.g. to trigger script unload events. return super(DumpMaster, self).run() \ No newline at end of file