diff --git a/XenAdmin/Controls/Wlb/WlbOptimizePool.cs b/XenAdmin/Controls/Wlb/WlbOptimizePool.cs index 5b0671ea1..50b36e6ae 100644 --- a/XenAdmin/Controls/Wlb/WlbOptimizePool.cs +++ b/XenAdmin/Controls/Wlb/WlbOptimizePool.cs @@ -594,7 +594,7 @@ namespace XenAdmin.Controls.Wlb /// protected void OptRecRetrieveAction_Completed(ActionBase sender) { - if (!(sender is WlbRetrieveRecommendationsAction asyncAction) || !action.IsCompleted) + if (!(sender is WlbRetrieveRecommendationsAction asyncAction)) return; asyncAction.Completed -= OptRecRetrieveAction_Completed; diff --git a/XenAdmin/Dialogs/GraphDetailsDialog.cs b/XenAdmin/Dialogs/GraphDetailsDialog.cs index 5118d308e..c215cb051 100644 --- a/XenAdmin/Dialogs/GraphDetailsDialog.cs +++ b/XenAdmin/Dialogs/GraphDetailsDialog.cs @@ -208,7 +208,7 @@ namespace XenAdmin.Dialogs private void getDataSourcesAction_Completed(ActionBase sender) { - if (!(sender is GetDataSourcesAction action) || !action.Succeeded) + if (!(sender is GetDataSourcesAction action)) return; Program.Invoke(this, () => diff --git a/XenAdmin/TabPages/PerformancePage.cs b/XenAdmin/TabPages/PerformancePage.cs index b1cc116bc..c31038afe 100644 --- a/XenAdmin/TabPages/PerformancePage.cs +++ b/XenAdmin/TabPages/PerformancePage.cs @@ -416,7 +416,7 @@ namespace XenAdmin.TabPages private void SaveGraphs(ActionBase sender) { - if (!(sender is GetDataSourcesAction action) || !action.Succeeded) + if (!(sender is GetDataSourcesAction action)) return; Program.Invoke(Program.MainWindow, () =>