浏览代码

Ignore exception when attempting to kill ffmpeg that has exited
A race condition where this code attempts to kill an already exited
ffmpeg process is possible. This results in unnecessary error logging.

This change replaces the generic exception handling with the above
mentioned exception. No log output is produced.

Andrew Rabert 5 年之前
父节点
当前提交
fd1bdad0e2
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      MediaBrowser.Api/ApiEntryPoint.cs

+ 1 - 2
MediaBrowser.Api/ApiEntryPoint.cs

@@ -610,9 +610,8 @@ namespace MediaBrowser.Api
                             process.Kill();
                         }
                     }
-                    catch (Exception ex)
+                    catch (InvalidOperationException)
                     {
-                        Logger.LogError(ex, "Error killing transcoding job for {Path}", job.Path);
                     }
                 }
             }