Skip to content

Commit

Permalink
chain: make sure to wait for shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Nov 4, 2024
1 parent 1a8e359 commit 321c0f3
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 321c0f3

Please sign in to comment.