Skip to content

Commit

Permalink
Remove SetFinalizer call
Browse files Browse the repository at this point in the history
See #56, this should be doing nothing.
To shut down the goroutine, callers should cancel the context given to the ticker.
  • Loading branch information
Groxx authored and cenkalti committed May 18, 2018
1 parent 2ea60e5 commit 4f7ab5a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ticker.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func NewTicker(b BackOff) *Ticker {
}
t.b.Reset()
go t.run()
runtime.SetFinalizer(t, (*Ticker).Stop)
return t
}

Expand Down

0 comments on commit 4f7ab5a

Please sign in to comment.