diff --git a/voter.go b/voter.go index bd0e950..76c25a9 100644 --- a/voter.go +++ b/voter.go @@ -74,6 +74,7 @@ func (v *Voter) poll(update <-chan time.Duration, t *time.Ticker) bool { if v.vote.NumPollsSinceChange < 10 { t2 = time.NewTimer(100 * time.Millisecond) + defer t2.Stop() } select {