diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-01-09 23:05:40 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-01-09 23:05:40 -0600 |
| commit | 03952c1a9f959b3f87b0a627baad635018c0f39e (patch) | |
| tree | e9d8729fb9c90fa36f8b220afddd448bbca6df76 /src | |
| parent | 8e3414a8f9567c336c86ce124be94a19bfb1cc5e (diff) | |
| download | slskd-03952c1a9f959b3f87b0a627baad635018c0f39e.tar.gz | |
clear yaml provider dictionary before loading
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Common/Configuration/YamlConfigurationSource.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Common/Configuration/YamlConfigurationSource.cs b/src/slskd/Common/Configuration/YamlConfigurationSource.cs index cd388f46..191e49ab 100644 --- a/src/slskd/Common/Configuration/YamlConfigurationSource.cs +++ b/src/slskd/Common/Configuration/YamlConfigurationSource.cs @@ -109,6 +109,11 @@ namespace slskd.Configuration { try { + // clear the data collection before we populate + // not doing this will cause array and dictionary keys + // to get "stuck" + Data.Clear(); + using var reader = new StreamReader(stream); var yaml = new YamlStream(); |
