fix: windows can't delete file because filestream is still open
This commit is contained in:
parent
86dec1478a
commit
79151fa893
@ -111,6 +111,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
||||
if (serializer.Deserialize(reader) is PluginConfiguration oldConfig)
|
||||
{
|
||||
Instance.UpdateConfiguration(oldConfig);
|
||||
fileStream.Close();
|
||||
File.Delete(oldConfigFile);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user