mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-07 21:22:31 +00:00
Fix error CA1849: 'ZipFile.ExtractToDirectory(Stream, string, bool)' synchronously blocks. Await 'ZipFile.ExtractToDirectoryAsync(Stream, string, bool, CancellationToken)' instead. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1849)
This commit is contained in:
@@ -562,7 +562,7 @@ namespace Emby.Server.Implementations.Updates
|
||||
}
|
||||
|
||||
stream.Position = 0;
|
||||
ZipFile.ExtractToDirectory(stream, targetDir, true);
|
||||
await ZipFile.ExtractToDirectoryAsync(stream, targetDir, true);
|
||||
|
||||
// Ensure we create one or populate existing ones with missing data.
|
||||
await _pluginManager.PopulateManifest(package.PackageInfo, package.Version, targetDir, status).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user