Merge pull request #587 from ghv2/fix-timer-leak

fix timer leak
pull/593/head^2 v2.40
DarienRaymond 7 years ago committed by GitHub
commit 1dcf3aa74a

@ -29,7 +29,9 @@ func (t *ActivityTimer) SetTimeout(timeout time.Duration) {
func (t *ActivityTimer) run() {
ticker := time.NewTicker(<-t.timeout)
defer ticker.Stop()
defer func() {
ticker.Stop()
}()
for {
select {

Loading…
Cancel
Save