Make sure to unpause all elements when resuming
The indegree code added a regression because elements with an indegree would not be unpaused! This is now corrected. Time to add more tests :)
This commit is contained in:
2
main.go
2
main.go
@@ -158,7 +158,7 @@ func run(c *cli.Context) {
|
||||
// loops, we'll cause G.Pause(...) before we
|
||||
// even got going, thus causing nil pointer errors
|
||||
log.Printf("State: %v -> %v", G.SetState(graphStarting), G.GetState())
|
||||
G.Start(&wg) // sync
|
||||
G.Start(&wg, first) // sync
|
||||
log.Printf("State: %v -> %v", G.SetState(graphStarted), G.GetState())
|
||||
first = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user