lnd: log errors for ChainControl when shutting down
This commit is contained in:
parent
bebe258e2d
commit
9571088756
16
server.go
16
server.go
@ -1578,7 +1578,9 @@ func (s *server) Stop() error {
|
|||||||
|
|
||||||
// Shutdown the wallet, funding manager, and the rpc server.
|
// Shutdown the wallet, funding manager, and the rpc server.
|
||||||
s.chanStatusMgr.Stop()
|
s.chanStatusMgr.Stop()
|
||||||
s.cc.ChainNotifier.Stop()
|
if err := s.cc.ChainNotifier.Stop(); err != nil {
|
||||||
|
srvrLog.Warnf("Unable to stop ChainNotifier: %v", err)
|
||||||
|
}
|
||||||
s.chanRouter.Stop()
|
s.chanRouter.Stop()
|
||||||
s.htlcSwitch.Stop()
|
s.htlcSwitch.Stop()
|
||||||
s.sphinx.Stop()
|
s.sphinx.Stop()
|
||||||
@ -1590,10 +1592,16 @@ func (s *server) Stop() error {
|
|||||||
s.channelNotifier.Stop()
|
s.channelNotifier.Stop()
|
||||||
s.peerNotifier.Stop()
|
s.peerNotifier.Stop()
|
||||||
s.htlcNotifier.Stop()
|
s.htlcNotifier.Stop()
|
||||||
s.cc.Wallet.Shutdown()
|
if err := s.cc.Wallet.Shutdown(); err != nil {
|
||||||
s.cc.ChainView.Stop()
|
srvrLog.Warnf("Unable to stop Wallet: %v", err)
|
||||||
|
}
|
||||||
|
if err := s.cc.ChainView.Stop(); err != nil {
|
||||||
|
srvrLog.Warnf("Unable to stop ChainView: %v", err)
|
||||||
|
}
|
||||||
s.connMgr.Stop()
|
s.connMgr.Stop()
|
||||||
s.cc.FeeEstimator.Stop()
|
if err := s.cc.FeeEstimator.Stop(); err != nil {
|
||||||
|
srvrLog.Warnf("Unable to stop FeeEstimator: %v", err)
|
||||||
|
}
|
||||||
s.invoices.Stop()
|
s.invoices.Stop()
|
||||||
s.fundingMgr.Stop()
|
s.fundingMgr.Stop()
|
||||||
s.chanSubSwapper.Stop()
|
s.chanSubSwapper.Stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user