mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
htlcswitch: close the updateFeeTimer properly
This commit is contained in:
parent
be626df689
commit
bf036f2665
@ -516,7 +516,14 @@ func (l *channelLink) Stop() {
|
||||
l.cfg.ChainEvents.Cancel()
|
||||
}
|
||||
|
||||
l.updateFeeTimer.Stop()
|
||||
// Ensure the channel for the timer is drained.
|
||||
if !l.updateFeeTimer.Stop() {
|
||||
select {
|
||||
case <-l.updateFeeTimer.C:
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
l.hodlQueue.Stop()
|
||||
|
||||
close(l.quit)
|
||||
|
Loading…
Reference in New Issue
Block a user