mitmdump: make sure to always call done() in inline scripts

This commit is contained in:
Maximilian Hils 2016-05-08 16:49:36 -06:00
parent 9ac9df82c4
commit 3c644274e9

View File

@ -346,5 +346,6 @@ class DumpMaster(flow.FlowMaster):
def run(self): # pragma: no cover def run(self): # pragma: no cover
if self.o.rfile and not self.o.keepserving: 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 return
super(DumpMaster, self).run() super(DumpMaster, self).run()