The Free Software Media System - Server Backend & API
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.
Andrew Rabertfd1bdad0e227
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.csindex a223a4fe38..7dca7e8147 100644--- a/MediaBrowser.Api/ApiEntryPoint.cs+++ b/MediaBrowser.Api/ApiEntryPoint.cs@@ -610,9 +610,8 @@ namespace MediaBrowser.Apiprocess.Kill();}}- catch (Exception ex)+ catch (InvalidOperationException){- Logger.LogError(ex, "Error killing transcoding job for {Path}", job.Path);}}}