fix: windows can't delete file because filestream is still open

This commit is contained in:
Kilian von Pflugk 2024-11-05 20:04:27 +01:00
parent 86dec1478a
commit 79151fa893

View File

@ -111,6 +111,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
if (serializer.Deserialize(reader) is PluginConfiguration oldConfig) if (serializer.Deserialize(reader) is PluginConfiguration oldConfig)
{ {
Instance.UpdateConfiguration(oldConfig); Instance.UpdateConfiguration(oldConfig);
fileStream.Close();
File.Delete(oldConfigFile); File.Delete(oldConfigFile);
} }
} }