fix client playback logic

This commit is contained in:
Maximilian Hils 2016-04-09 14:35:30 -07:00
parent 5c8e7a090e
commit 5c333ee3ba

View File

@ -816,11 +816,12 @@ class FlowMaster(controller.Master):
self.client_playback.done() and
self.state.active_flow_count() == 0
)
exit = stop and self.client_playback.exit
exit = self.client_playback.exit
if stop:
self.stop_client_playback()
if exit:
self.shutdown()
else:
self.client_playback.tick(self)
if self.server_playback:
@ -828,7 +829,7 @@ class FlowMaster(controller.Master):
self.server_playback.count() == 0 and
self.state.active_flow_count() == 0
)
exit = stop and self.server_playback.exit
exit = self.server_playback.exit
if stop:
self.stop_server_playback()
if exit: