From 6ee08290c5fd02630d2ad7eb637d037ff0b16e52 Mon Sep 17 00:00:00 2001 From: Slyghtning Date: Tue, 27 May 2025 20:24:25 +0200 Subject: [PATCH] challanger: cancel inv context when strictly verifying inv states --- challenger/lnd.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/challenger/lnd.go b/challenger/lnd.go index cbe13d3..e948194 100644 --- a/challenger/lnd.go +++ b/challenger/lnd.go @@ -270,7 +270,9 @@ func (l *LndChallenger) readInvoiceStream( // Stop shuts down the challenger. func (l *LndChallenger) Stop() { - l.invoicesCancel() + if l.invoicesCancel != nil { + l.invoicesCancel() + } close(l.quit) l.wg.Wait() }