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.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()
|
l.hodlQueue.Stop()
|
||||||
|
|
||||||
close(l.quit)
|
close(l.quit)
|
||||||
|
Loading…
Reference in New Issue
Block a user