Minor refactoring. Make stop_stream also close the associated file descriptor.

This commit is contained in:
Aldo Cortesi 2012-07-27 00:19:18 +12:00
parent f93a621856
commit 31a092f6b4
1 changed files with 1 additions and 1 deletions

View File

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