mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-20 14:04:23 +01: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