mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 23:21:12 +02:00
multi: wait for rpcclients shutdown to complete
We need to call `WaitForShutdown` after stopping the rpc clients of the chain backends.
This commit is contained in:
@@ -136,6 +136,7 @@ func (b *BitcoindFilteredChainView) Stop() error {
|
||||
// Shutdown the rpc client, this gracefully disconnects from bitcoind's
|
||||
// zmq socket, and cleans up all related resources.
|
||||
b.chainClient.Stop()
|
||||
b.chainClient.WaitForShutdown()
|
||||
|
||||
b.blockQueue.Stop()
|
||||
|
||||
|
@@ -146,6 +146,7 @@ func (b *BtcdFilteredChainView) Stop() error {
|
||||
// Shutdown the rpc client, this gracefully disconnects from btcd, and
|
||||
// cleans up all related resources.
|
||||
b.btcdConn.Shutdown()
|
||||
b.btcdConn.WaitForShutdown()
|
||||
|
||||
b.blockQueue.Stop()
|
||||
|
||||
|
Reference in New Issue
Block a user