From 321c0f389f6549c21e372e0e358b53a0b453f098 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Mon, 4 Nov 2024 10:58:45 +0800 Subject: [PATCH] chain: make sure to wait for shutdown --- chain/btcd.go | 1 + 1 file changed, 1 insertion(+) 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)