Skip to content

Commit

Permalink
properly dispose the filestream
Browse files Browse the repository at this point in the history
  • Loading branch information
taooceros committed Jan 10, 2025
1 parent a62b222 commit 4b38e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Flow.Launcher.Infrastructure/Storage/JsonStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void Save()

public async Task SaveAsync()
{
var tempOutput = File.OpenWrite(TempFilePath);
await using var tempOutput = File.OpenWrite(TempFilePath);
await JsonSerializer.SerializeAsync(tempOutput, Data,
new JsonSerializerOptions { WriteIndented = true });
AtomicWriteSetting();
Expand Down

0 comments on commit 4b38e0e

Please sign in to comment.