Browse Source

Remove panic and log error if file no longer exists. Closes #31

pull/53/head
Gabe Kangas 5 years ago
parent
commit
f949adb40c
  1. 3
      core/playlist/monitor.go

3
core/playlist/monitor.go

@ -84,8 +84,7 @@ func StartVideoContentMonitor(storage models.ChunkStorageProvider) error { @@ -84,8 +84,7 @@ func StartVideoContentMonitor(storage models.ChunkStorageProvider) error {
go func() {
newObjectPath, err := storage.Save(path.Join(config.Config.PrivateHLSPath, segment.RelativeUploadPath), 0)
if err != nil {
log.Println("failed to save the file to the chunk storage")
panic(err)
log.Errorln("failed to save the file to the chunk storage.", err)
}
newObjectPathChannel <- newObjectPath

Loading…
Cancel
Save