diff --git a/Application/IO/BaseConfigurationHandlerV2.cs b/Application/IO/BaseConfigurationHandlerV2.cs index bd33ea7d2..fee9d14f2 100644 --- a/Application/IO/BaseConfigurationHandlerV2.cs +++ b/Application/IO/BaseConfigurationHandlerV2.cs @@ -129,7 +129,7 @@ public class BaseConfigurationHandlerV2 : IConfigurationHand await _onIo.WaitAsync(); } - await using var fileStream = File.OpenWrite(_path); + await using var fileStream = File.Create(_path); await JsonSerializer.SerializeAsync(fileStream, configuration, _serializerOptions); await fileStream.DisposeAsync(); _configurationInstance = configuration;