Merge 3c2ecb2eda into 93f4c4a843
This commit is contained in:
commit
09d9a64f5d
1 changed files with 11 additions and 8 deletions
|
|
@ -480,6 +480,8 @@ func restartServices(
|
|||
}
|
||||
fmt.Println(" ✓ Heartbeat service restarted")
|
||||
|
||||
|
||||
if runningServices.MediaStore == nil {
|
||||
runningServices.MediaStore = media.NewFileMediaStoreWithCleanup(media.MediaCleanerConfig{
|
||||
Enabled: cfg.Tools.MediaCleanup.Enabled,
|
||||
MaxAge: time.Duration(cfg.Tools.MediaCleanup.MaxAge) * time.Minute,
|
||||
|
|
@ -487,6 +489,7 @@ func restartServices(
|
|||
})
|
||||
if fms, ok := runningServices.MediaStore.(*media.FileMediaStore); ok {
|
||||
fms.Start()
|
||||
}
|
||||
}
|
||||
al.SetMediaStore(runningServices.MediaStore)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue