diff --git a/history/file_scribe.go b/history/file_scribe.go index be0c4f37f..f7d0c94d1 100644 --- a/history/file_scribe.go +++ b/history/file_scribe.go @@ -75,6 +75,7 @@ func (s *FileScribe) Record(rec Record, out *int) error { t := time.NewTicker(s.savePeriod) select { case <-s.loopChecker: + t.Stop() // cancel saving case <-t.C: if fileToSave != "" {