From 154552d0f6ad05d9e1cf982884f3b22c8808de6e Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Thu, 23 Apr 2015 18:48:38 +0300 Subject: [PATCH] make sure the ticker is stopped --- history/file_scribe.go | 1 + 1 file changed, 1 insertion(+) 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 != "" {