Ensure that flow/view state is consistent.

Fixes #595 and #592
This commit is contained in:
Aldo Cortesi 2015-05-29 11:36:56 +12:00
parent 99c691def5
commit 1a106f4080

View File

@ -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):
"""