From 6524849386fa7b24814db93746c2c07c3de8f1c0 Mon Sep 17 00:00:00 2001 From: fonsinchen Date: Tue, 22 Oct 2013 16:13:54 +0000 Subject: (svn r25899) -Change: Restrict flows if links are restricted and don't normally pick them anymore. --- src/linkgraph/linkgraphjob.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/linkgraph') diff --git a/src/linkgraph/linkgraphjob.cpp b/src/linkgraph/linkgraphjob.cpp index 242689e8d..ac22a38a4 100644 --- a/src/linkgraph/linkgraphjob.cpp +++ b/src/linkgraph/linkgraphjob.cpp @@ -69,6 +69,9 @@ LinkGraphJob::~LinkGraphJob() (*lg)[node_id][it->first].LastUpdate() == INVALID_DATE) { /* Edge has been removed. Delete flows. */ flows.DeleteFlows(to); + } else if ((*lg)[node_id][it->first].LastUnrestrictedUpdate() == INVALID_DATE) { + /* Edge is fully restricted. */ + flows.RestrictFlows(to); } } -- cgit v1.2.3-54-g00ecf