From ad1d029aaf461a935cbd7c2f3638d0842b34a283 Mon Sep 17 00:00:00 2001 From: Aireil <33433913+Aireil@users.noreply.github.com> Date: Wed, 23 Dec 2020 05:46:00 +0100 Subject: [PATCH] Fix missing close when creating files --- Dalamud/Plugin/PluginRepository.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dalamud/Plugin/PluginRepository.cs b/Dalamud/Plugin/PluginRepository.cs index 26f5435bb..38d502fc8 100644 --- a/Dalamud/Plugin/PluginRepository.cs +++ b/Dalamud/Plugin/PluginRepository.cs @@ -134,12 +134,12 @@ namespace Dalamud.Plugin ZipFile.ExtractToDirectory(path, outputDir.FullName); if (wasDisabled || !enableAfterInstall) { - disabledFile.Create(); + disabledFile.Create().Close(); return true; } if (doTestingDownload) { - testingFile.Create(); + testingFile.Create().Close(); } else { if (testingFile.Exists) testingFile.Delete(); @@ -246,7 +246,7 @@ namespace Dalamud.Plugin var disabledFile = new FileInfo(Path.Combine(sortedVersion.FullName, ".disabled")); if (!disabledFile.Exists) - disabledFile.Create(); + disabledFile.Create().Close(); } } catch (Exception ex) { Log.Error(ex, "Plugin disable old versions failed");