Skip to content

Commit

Permalink
fix a missing ticker.stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyang2 authored Jun 26, 2022
1 parent a04ba64 commit c70ff6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ func (s *Scheduler) runHeartbeater() {
case <-s.done:
s.logger.Debugf("Scheduler heatbeater shutting down")
s.rdb.ClearSchedulerEntries(s.id)
ticker.Stop()
return
case <-ticker.C:
s.beat()
Expand Down

0 comments on commit c70ff6a

Please sign in to comment.