CA-178244: Adds condition to RemoveUpdate that checks if the list contains the given update.

This commit is contained in:
Carmen Agimof 2015-08-04 16:27:12 +01:00
parent 04b204a0d9
commit f3e4c140a0

View File

@ -89,7 +89,12 @@ namespace XenAdmin.Core
try
{
lock (updateAlertsLock)
updateAlerts.Remove(update);
{
if(updateAlerts.Contains(update))
{
updateAlerts.Remove(update);
}
}
}
catch (Exception e)
{