mirror of https://github.com/BTCPrivate/lnd.git
lnwallet: during shutdown properly wait for all goroutines to exit
This commit is contained in:
parent
2b047ff56c
commit
0e607c1939
|
@ -385,7 +385,10 @@ func (l *LightningWallet) Shutdown() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Signal the underlying wallet controller to shutdown, waiting until
|
||||||
|
// all active goroutines have been shutdown.
|
||||||
l.Stop()
|
l.Stop()
|
||||||
|
l.WaitForShutdown()
|
||||||
|
|
||||||
l.rpc.Shutdown()
|
l.rpc.Shutdown()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue