diff options
| author | Bond_009 <bond.009@outlook.com> | 2023-11-16 00:49:23 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2023-11-16 00:49:23 +0100 |
| commit | 464de13acf3be8e466e12c8087bef8623e9edba9 (patch) | |
| tree | 6cf3b515a5b334aacf995bf4c34cfc059460f254 /Emby.Server.Implementations/Updates/InstallationManager.cs | |
| parent | 5fa1b8ac3a7e65f0972e4fc55e83172f66efd794 (diff) | |
Use new static ZipFile functions
Diffstat (limited to 'Emby.Server.Implementations/Updates/InstallationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Updates/InstallationManager.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs index c717744b1..b31b4116d 100644 --- a/Emby.Server.Implementations/Updates/InstallationManager.cs +++ b/Emby.Server.Implementations/Updates/InstallationManager.cs @@ -551,8 +551,7 @@ namespace Emby.Server.Implementations.Updates } stream.Position = 0; - using var reader = new ZipArchive(stream); - reader.ExtractToDirectory(targetDir, true); + ZipFile.ExtractToDirectory(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); |
