server: stop interceptable switch in Stop

This commit is contained in:
Elle Mouton committed 2024-09-25 14:32:52 +09:00
1 parent 0bd76ffe32
commit f1015cd58d
1 file changed
+4
+4
View File
@@ -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.interceptableSwitch.Stop(); err != nil {
srvrLog.Warnf("failed to stop interceptable "+
"switch: %v", err)
}
if err := s.invoiceHtlcModifier.Stop(); err != nil {
srvrLog.Warnf("failed to stop htlc invoices "+
"modifier: %v", err)