aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-27 00:19:18 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-27 00:19:18 +1200
commit31a092f6b4678f57cd13c27934189123a5fd6457 (patch)
tree380af6453f195eea8116137321dc9519c28fcb24 /libmproxy
parentf93a621856d68846c42825d011ff2fa762088d3f (diff)
downloadmitmproxy-31a092f6b4678f57cd13c27934189123a5fd6457.tar.gz
mitmproxy-31a092f6b4678f57cd13c27934189123a5fd6457.tar.bz2
mitmproxy-31a092f6b4678f57cd13c27934189123a5fd6457.zip
Minor refactoring. Make stop_stream also close the associated file descriptor.
Diffstat (limited to 'libmproxy')
-rw-r--r--libmproxy/flow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py
index ef226641..20020e84 100644
--- a/libmproxy/flow.py
+++ b/libmproxy/flow.py
@@ -1439,13 +1439,13 @@ class FlowMaster(controller.Master):
for i in self.state._flow_list:
if not i.response:
self.stream.add(i)
- self.stream.fo.close()
self.stop_stream()
def start_stream(self, fp):
self.stream = FlowWriter(fp)
def stop_stream(self):
+ self.stream.fo.close()
self.stream = None