challanger: cancel inv context when strictly verifying inv states

This commit is contained in:
Slyghtning
2025-05-27 20:24:25 +02:00
parent c44ae45a07
commit 6ee08290c5

View File

@@ -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()
}