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