diff options
Diffstat (limited to 'src/linkgraph/linkgraphjob.cpp')
-rw-r--r-- | src/linkgraph/linkgraphjob.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } } |