Skip to content

Commit

Permalink
dcrdtest: Add abnormal exit goroutine to node waitgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Apr 4, 2024
1 parent 738c759 commit af69e3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dcrdtest/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,10 @@ func (n *node) start(ctx context.Context) error {
return err
}

n.wg.Add(1)
earlyShutdown := make(chan error, 1)
go func() {
defer n.wg.Done()
_, err := cmd.Process.Wait()
earlyShutdown <- err
}()
Expand Down

0 comments on commit af69e3b

Please sign in to comment.