mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-08 22:28:15 -05:00
fix configuration write append issue
This commit is contained in:
parent
c9dee27a0c
commit
8e1dd9d506
@ -129,7 +129,7 @@ public class BaseConfigurationHandlerV2<TConfigurationType> : IConfigurationHand
|
|||||||
await _onIo.WaitAsync();
|
await _onIo.WaitAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
await using var fileStream = File.OpenWrite(_path);
|
await using var fileStream = File.Create(_path);
|
||||||
await JsonSerializer.SerializeAsync(fileStream, configuration, _serializerOptions);
|
await JsonSerializer.SerializeAsync(fileStream, configuration, _serializerOptions);
|
||||||
await fileStream.DisposeAsync();
|
await fileStream.DisposeAsync();
|
||||||
_configurationInstance = configuration;
|
_configurationInstance = configuration;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user