mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 07:49:10 +00:00
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
Block a user