Browse Source

Add sanity check for ThrottleDelaySeconds

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
nyanmisaka 1 year ago
parent
commit
55fd6b5cb9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MediaBrowser.Controller/MediaEncoding/TranscodingThrottler.cs

+ 1 - 1
MediaBrowser.Controller/MediaEncoding/TranscodingThrottler.cs

@@ -115,7 +115,7 @@ public class TranscodingThrottler : IDisposable
 
 
         var options = GetOptions();
         var options = GetOptions();
 
 
-        if (options.EnableThrottling && IsThrottleAllowed(_job, options.ThrottleDelaySeconds))
+        if (options.EnableThrottling && IsThrottleAllowed(_job, Math.Max(options.ThrottleDelaySeconds, 60)))
         {
         {
             await PauseTranscoding().ConfigureAwait(false);
             await PauseTranscoding().ConfigureAwait(false);
         }
         }