From 08edbf9bd48d1e64c3ee415b549d93985c2b5a01 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Wed, 23 Aug 2023 16:34:07 -0500 Subject: [PATCH] fix configuration write append issue --- Application/IO/BaseConfigurationHandlerV2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;