fix a missing ticker.stop()

This commit is contained in:
徐胖
2022-06-27 04:10:06 +08:00
committed by GitHub
parent a04ba6411d
commit c70ff6a335

View File

@@ -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()