Update Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
BaronGreenback 2020-11-09 11:24:53 +00:00 committed by GitHub
parent f63a706a86
commit 69790ef6b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,9 +148,11 @@ namespace Emby.Server.Implementations.AppBase
}
else
{
var list = _configurationFactories.ToList();
list.Add(factory);
_configurationFactories = list.ToArray();
var oldLen = _configurationFactories.Length;
var arr = new IConfigurationFactory[oldLen + 1];
_configurationFactories.CopyTo(arr, 0);
arr[oldLen] = factory;
_configurationFactories = arr;
}
_configurationStores = _configurationFactories