From 80c051183aed7726aae45306353335c5a62f33f1 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 31 May 2023 08:32:29 -0700 Subject: [PATCH] Stop t2 --- voter.go | 1 + 1 file changed, 1 insertion(+) 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 {