Skip to content

Commit 735dd3f

Browse files
challanger: cancel inv context when strictly verifying inv states
1 parent 770cb04 commit 735dd3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

challenger/lnd.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ func (l *LndChallenger) readInvoiceStream(
270270

271271
// Stop shuts down the challenger.
272272
func (l *LndChallenger) Stop() {
273-
l.invoicesCancel()
273+
if l.invoicesCancel != nil {
274+
l.invoicesCancel()
275+
}
274276
close(l.quit)
275277
l.wg.Wait()
276278
}

0 commit comments

Comments
 (0)