pgraph: Remember to unpause the vertices!

Forgot this part earlier, sorry! Should work correctly now :)
This commit is contained in:
James Shubin
2016-12-21 02:39:54 -05:00
parent a3d157bde6
commit 5b3425a689

View File

@@ -497,6 +497,10 @@ func (g *Graph) Start(first bool) { // start or continue
defer wg.Done() defer wg.Done()
vv.Res.Started() // block until started vv.Res.Started() // block until started
}(v) }(v)
if !first { // unpause!
v.Res.SendEvent(event.EventStart, true, false) // sync!
}
} }
wg.Wait() // wait for everyone wg.Wait() // wait for everyone