We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48971d8 commit 238d4dfCopy full SHA for 238d4df
Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs
@@ -328,7 +328,10 @@ public async Task InitSettingAsync()
328
return;
329
330
if (File.Exists(SettingPath))
331
- Settings = await JsonSerializer.DeserializeAsync<Dictionary<string, object>>(File.OpenRead(SettingPath), options);
+ {
332
+ await using var fileStream = File.OpenRead(SettingPath);
333
+ Settings = await JsonSerializer.DeserializeAsync<Dictionary<string, object>>(fileStream, options);
334
+ }
335
336
var deserializer = new DeserializerBuilder().WithNamingConvention(CamelCaseNamingConvention.Instance).Build();
337
_settingsTemplate = deserializer.Deserialize<JsonRpcConfigurationModel>(await File.ReadAllTextAsync(SettingConfigurationPath));
0 commit comments