Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chain: make sure to WaitForShutdown #964

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chain: make sure to wait for shutdown
  • Loading branch information
yyforyongyu committed Nov 4, 2024
commit 321c0f389f6549c21e372e0e358b53a0b453f098
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
Loading