Fix AttributeError when shutting down a writing mitmdump.

This commit is contained in:
Aldo Cortesi 2012-05-17 09:47:04 +12:00
parent 0a90a3eaba
commit 08d6da2941

View File

@ -217,7 +217,7 @@ class DumpMaster(flow.FlowMaster):
# begin nocover # begin nocover
def shutdown(self): def shutdown(self):
if self.o.wfile: if self.o.wfile:
self.wfile.fo.close() self.fwriter.fo.close()
return flow.FlowMaster.shutdown(self) return flow.FlowMaster.shutdown(self)
def run(self): def run(self):