mirror of
https://github.com/lightninglabs/aperture.git
synced 2026-01-31 15:14:26 +01:00
challanger: cancel inv context when strictly verifying inv states
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user