mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 07:35:07 +02:00
lnwallet: during shutdown properly wait for all goroutines to exit
This commit is contained in:
@@ -385,7 +385,10 @@ func (l *LightningWallet) Shutdown() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Signal the underlying wallet controller to shutdown, waiting until
|
||||
// all active goroutines have been shutdown.
|
||||
l.Stop()
|
||||
l.WaitForShutdown()
|
||||
|
||||
l.rpc.Shutdown()
|
||||
|
||||
|
Reference in New Issue
Block a user