Skip to content

Commit

Permalink
oops need a nonblocking read
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Apr 4, 2024
1 parent eecdd07 commit 4d63e3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dcrdtest/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,11 @@ func (n *node) stop() error {
log.Tracef("stop %p", n.cmd)
defer log.Tracef("stop done")

if _, ok := <-n.cmdStarted; !ok {
select {
case <-n.cmdStarted:
// has not been started (yet, or ever)
return nil
default:
}

select {
Expand Down

0 comments on commit 4d63e3a

Please sign in to comment.