mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CA-178244: Adds condition to RemoveUpdate that checks if the list contains the given update.
This commit is contained in:
parent
04b204a0d9
commit
f3e4c140a0
@ -89,7 +89,12 @@ namespace XenAdmin.Core
|
||||
try
|
||||
{
|
||||
lock (updateAlertsLock)
|
||||
updateAlerts.Remove(update);
|
||||
{
|
||||
if(updateAlerts.Contains(update))
|
||||
{
|
||||
updateAlerts.Remove(update);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user