fix issue with writing config files

This commit is contained in:
RaidMax 2022-01-29 13:30:48 -06:00
parent 505a2c4c2d
commit 0d3e2cb0bc

View File

@ -73,7 +73,7 @@ namespace IW4MAdmin.Application.Misc
{ {
await _onSaving.WaitAsync(); await _onSaving.WaitAsync();
await using var fileStream = File.OpenWrite(FileName); await using var fileStream = File.Create(FileName);
await JsonSerializer.SerializeAsync(fileStream, _configuration, _serializerOptions); await JsonSerializer.SerializeAsync(fileStream, _configuration, _serializerOptions);
} }