mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
nil-ThrottleTimer.Stop() does nothing
This commit is contained in:
@@ -46,7 +46,12 @@ func (t *ThrottleTimer) Set() {
|
||||
}
|
||||
}
|
||||
|
||||
// For ease of .Stop()'ing services before .Start()'ing them,
|
||||
// we ignore .Stop()'s on nil ThrottleTimers
|
||||
func (t *ThrottleTimer) Stop() bool {
|
||||
if t == nil {
|
||||
return false
|
||||
}
|
||||
close(t.quit)
|
||||
return t.timer.Stop()
|
||||
}
|
||||
|
Reference in New Issue
Block a user