mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
Merge pull request #12925 from Bond-009/await
Always await instead of directly returning Task
This commit is contained in:
@@ -2056,16 +2056,16 @@ public class DynamicHlsController : BaseJellyfinApiController
|
||||
}
|
||||
}
|
||||
|
||||
private Task DeleteLastFile(string playlistPath, string segmentExtension, int retryCount)
|
||||
private async Task DeleteLastFile(string playlistPath, string segmentExtension, int retryCount)
|
||||
{
|
||||
var file = GetLastTranscodingFile(playlistPath, segmentExtension, _fileSystem);
|
||||
|
||||
if (file is null)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
return;
|
||||
}
|
||||
|
||||
return DeleteFile(file.FullName, retryCount);
|
||||
await DeleteFile(file.FullName, retryCount).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
private async Task DeleteFile(string path, int retryCount)
|
||||
|
||||
Reference in New Issue
Block a user