From 1a106f4080d89a236a193f2cb007a00aa195a1ad Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 29 May 2015 11:36:56 +1200 Subject: [PATCH] Ensure that flow/view state is consistent. Fixes #595 and #592 --- libmproxy/flow.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 553bfd844..4893b725f 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -459,8 +459,9 @@ class FlowStore(FlowList): Notifies the state that a flow has been updated. The flow must be present in the state. """ - for view in self.views: - view._update(f) + if f in self: + for view in self.views: + view._update(f) def _remove(self, f): """