From dd8454161fa52f93a912203e2ff665febf70fbe0 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 27 Jan 2017 17:40:44 -0500 Subject: [PATCH] pgraph: Set the false starter value too We might have left re-used nodes as true, even if they no longer were anymore due to graph changes, which would have caused additional pokes. --- pgraph/actions.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pgraph/actions.go b/pgraph/actions.go index 9f6b9769..ac529e93 100644 --- a/pgraph/actions.go +++ b/pgraph/actions.go @@ -612,9 +612,9 @@ func (g *Graph) Start(first bool) { // start or continue // if we are unpausing (since it's not the first run of this // function) we need to poke to *unpause* every graph vertex, // and not just selectively the subset with no indegree. - if (!first) || indegree[v] == 0 { - v.Res.Starter(true) // let the startup code know to poke - } + + // let the startup code know to poke or not + v.Res.Starter((!first) || indegree[v] == 0) if !v.Res.IsWorking() { // if Worker() is not running... g.wg.Add(1)