Merge pull request #4830 from yyforyongyu/small-code-fix

multi: small code fix
This commit is contained in:
Conner Fromknecht
2020-12-08 12:28:29 -08:00
committed by GitHub
2 changed files with 9 additions and 2 deletions

View File

@ -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)