diff --git a/chain/btcd.go b/chain/btcd.go index 7db148c4a4..03486f6da4 100644 --- a/chain/btcd.go +++ b/chain/btcd.go @@ -242,6 +242,7 @@ func (c *RPCClient) Stop() { default: close(c.quit) c.Client.Shutdown() + c.Client.WaitForShutdown() if !c.started { close(c.dequeueNotification)