mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-20 04:21:37 +02:00
chainntnfs: ensure ntfn cancellation loop will exit
This commit fixes a slight bug introduced. We now ensure that the cancel loop always exists if the ChainNotifier has been signaled for a quit.
This commit is contained in:
@@ -722,6 +722,7 @@ func (n *NeutrinoNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint,
|
||||
return
|
||||
}
|
||||
case <-n.quit:
|
||||
return
|
||||
}
|
||||
}
|
||||
case <-n.quit:
|
||||
@@ -891,6 +892,7 @@ func (n *NeutrinoNotifier) RegisterBlockEpochNtfn() (*chainntnfs.BlockEpochEvent
|
||||
return
|
||||
}
|
||||
case <-n.quit:
|
||||
return
|
||||
}
|
||||
}
|
||||
case <-n.quit:
|
||||
|
Reference in New Issue
Block a user