Merge pull request #4830 from yyforyongyu/small-code-fix
multi: small code fix
This commit is contained in:
2 files changed
+9
-2
No files matched your search
+8
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user