Explorar el Código

Add sanity check for ThrottleDelaySeconds

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
nyanmisaka hace 1 año
padre
commit
55fd6b5cb9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();
 
-        if (options.EnableThrottling && IsThrottleAllowed(_job, options.ThrottleDelaySeconds))
+        if (options.EnableThrottling && IsThrottleAllowed(_job, Math.Max(options.ThrottleDelaySeconds, 60)))
         {
             await PauseTranscoding().ConfigureAwait(false);
         }