mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-29 21:17:26 +00:00
Merge changes
This commit is contained in:
commit
f26fc7dfb2
161 changed files with 2771 additions and 2390 deletions
|
|
@ -904,8 +904,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
{
|
||||
bool ranToCompletion = false;
|
||||
|
||||
await _thumbnailResourcePool.WaitAsync(cancellationToken).ConfigureAwait(false);
|
||||
try
|
||||
using (await _thumbnailResourcePool.LockAsync(cancellationToken).ConfigureAwait(false))
|
||||
{
|
||||
StartProcess(processWrapper);
|
||||
|
||||
|
|
@ -959,10 +958,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
StopProcess(processWrapper, 1000);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
_thumbnailResourcePool.Release();
|
||||
}
|
||||
|
||||
var exitCode = ranToCompletion ? processWrapper.ExitCode ?? 0 : -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue