Remove panic and log error if file no longer exists. Closes #31
This commit is contained in:
parent
519c3aa8b5
commit
f949adb40c
@ -84,8 +84,7 @@ func StartVideoContentMonitor(storage models.ChunkStorageProvider) error {
|
|||||||
go func() {
|
go func() {
|
||||||
newObjectPath, err := storage.Save(path.Join(config.Config.PrivateHLSPath, segment.RelativeUploadPath), 0)
|
newObjectPath, err := storage.Save(path.Join(config.Config.PrivateHLSPath, segment.RelativeUploadPath), 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("failed to save the file to the chunk storage")
|
log.Errorln("failed to save the file to the chunk storage.", err)
|
||||||
panic(err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
newObjectPathChannel <- newObjectPath
|
newObjectPathChannel <- newObjectPath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user