mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
make sure the ticker is stopped
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user