Skip to content

Commit

Permalink
Catch permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknsy committed Aug 4, 2022
1 parent a11039c commit a55ae71
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Nick.Plugin.Jellyscrub/Drawing/OldMediaEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,14 @@ public async Task ExtractVideoImagesOnInterval(
private void StartProcess(ProcessWrapper process)
{
process.Process.Start();
process.Process.PriorityClass = _config.ProcessPriority;
try
{
process.Process.PriorityClass = _config.ProcessPriority;
}
catch (Exception e)
{
_logger.LogError("Unable to set process priority: {0}", e.Message);
}

lock (_runningProcessesLock)
{
Expand Down

0 comments on commit a55ae71

Please sign in to comment.