From 08d6da2941347d672d69ddc1786da875ab6b5287 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 17 May 2012 09:47:04 +1200 Subject: [PATCH] Fix AttributeError when shutting down a writing mitmdump. --- libmproxy/dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmproxy/dump.py b/libmproxy/dump.py index 0eba363ad..5781764c2 100644 --- a/libmproxy/dump.py +++ b/libmproxy/dump.py @@ -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):