Merge pull request #1390 from GaborApatiNagy/master_CA-238993

CA-238993: Fixed: forever growing updates list while new or updated metadata was not shown
This commit is contained in:
Mihaela Stoica 2017-01-24 09:54:25 +00:00 committed by GitHub
commit 02c228ca85

View File

@ -258,17 +258,13 @@ namespace XenAdmin.Core
{
lock (downloadedUpdatesLock)
{
var xcvs = action.XenCenterVersions.Where(v => !XenCenterVersions.Contains(v));
XenCenterVersions.AddRange(xcvs);
XenCenterVersions = action.XenCenterVersions;
var versForAutoCheck = action.XenServerVersionsForAutoCheck.Where(v => !XenServerVersionsForAutoCheck.Contains(v));
XenServerVersionsForAutoCheck.AddRange(versForAutoCheck);
XenServerVersionsForAutoCheck = action.XenServerVersionsForAutoCheck;
var vers = action.XenServerVersions.Where(v => !XenServerVersions.Contains(v));
XenServerVersions.AddRange(vers);
XenServerVersions = action.XenServerVersions;
var patches = action.XenServerPatches.Where(p => !XenServerPatches.Contains(p));
XenServerPatches.AddRange(patches);
XenServerPatches = action.XenServerPatches;
}
var xenCenterAlert = NewXenCenterUpdateAlert(XenCenterVersions, Program.Version);