invoices: init quit channel of modifier
Also add atomic start and stop vars to prevent close of a closed channel.
This commit is contained in:
2 files changed
+16
No files matched your search
@@ -2411,6 +2411,10 @@ func (s *server) Stop() error {
|
||||
if err := s.invoices.Stop(); err != nil {
|
||||
srvrLog.Warnf("failed to stop invoices: %v", err)
|
||||
}
|
||||
if err := s.invoiceHtlcModifier.Stop(); err != nil {
|
||||
srvrLog.Warnf("failed to stop htlc invoices "+
|
||||
"modifier: %v", err)
|
||||
}
|
||||
if err := s.chanRouter.Stop(); err != nil {
|
||||
srvrLog.Warnf("failed to stop chanRouter: %v", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user