Fix AttributeError when shutting down a writing mitmdump.
This commit is contained in:
parent
0a90a3eaba
commit
08d6da2941
|
@ -217,7 +217,7 @@ class DumpMaster(flow.FlowMaster):
|
|||
# begin nocover
|
||||
def shutdown(self):
|
||||
if self.o.wfile:
|
||||
self.wfile.fo.close()
|
||||
self.fwriter.fo.close()
|
||||
return flow.FlowMaster.shutdown(self)
|
||||
|
||||
def run(self):
|
||||
|
|
Loading…
Reference in New Issue