Skip to content

Commit

Permalink
Merge pull request #964 from yyforyongyu/fix-shutdown
Browse files Browse the repository at this point in the history
chain: make sure to `WaitForShutdown`
  • Loading branch information
guggero authored Nov 13, 2024
2 parents 1a8e359 + 321c0f3 commit b4ff607
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chain/btcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ func (c *RPCClient) Stop() {
default:
close(c.quit)
c.Client.Shutdown()
c.Client.WaitForShutdown()

if !c.started {
close(c.dequeueNotification)
Expand Down

0 comments on commit b4ff607

Please sign in to comment.