Stop t2
This commit is contained in:
1
voter.go
1
voter.go
@@ -74,6 +74,7 @@ func (v *Voter) poll(update <-chan time.Duration, t *time.Ticker) bool {
|
|||||||
|
|
||||||
if v.vote.NumPollsSinceChange < 10 {
|
if v.vote.NumPollsSinceChange < 10 {
|
||||||
t2 = time.NewTimer(100 * time.Millisecond)
|
t2 = time.NewTimer(100 * time.Millisecond)
|
||||||
|
defer t2.Stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
|||||||
Reference in New Issue
Block a user