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
1 changed files with 1 additions and 1 deletions

View File

@ -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):