From 01f52ee56ab6b798aed3f8cec35ba9b3a25cbd87 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 8 May 2016 16:54:30 -0600 Subject: [PATCH] fix mitmdump shutdown --- mitmproxy/dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py index a077438b1..d224f1aa0 100644 --- a/mitmproxy/dump.py +++ b/mitmproxy/dump.py @@ -346,6 +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. + self.unload_scripts() # make sure to trigger script unload events. return super(DumpMaster, self).run() \ No newline at end of file