mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 22:50:58 +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:
@@ -139,6 +139,7 @@ func (b *BitcoindNotifier) Stop() error {
|
||||
// Shutdown the rpc client, this gracefully disconnects from bitcoind,
|
||||
// and cleans up all related resources.
|
||||
b.chainConn.Stop()
|
||||
b.chainConn.WaitForShutdown()
|
||||
|
||||
close(b.quit)
|
||||
b.wg.Wait()
|
||||
|
Reference in New Issue
Block a user