diff --git a/XenModel/Actions/VM/ExportVmAction.cs b/XenModel/Actions/VM/ExportVmAction.cs index c38cb5df2..e965c5b65 100644 --- a/XenModel/Actions/VM/ExportVmAction.cs +++ b/XenModel/Actions/VM/ExportVmAction.cs @@ -131,7 +131,7 @@ namespace XenAdmin.Actions // which probably means there was an exception in the GUI code before the // action got going. Kill the task so that we don't block forever on // taskThread.Join(). Brought to light by CA-11100. - XenAPI.Task.destroy(this.Session, this.RelatedTask.opaque_ref); + DestroyTask(); } // Test for null: don't overwrite a previous exception if (_exception == null) diff --git a/XenModel/WLB/WlbReportAction.cs b/XenModel/WLB/WlbReportAction.cs index f442662c4..df8c1c330 100644 --- a/XenModel/WLB/WlbReportAction.cs +++ b/XenModel/WLB/WlbReportAction.cs @@ -117,7 +117,7 @@ namespace XenAdmin.Actions.Wlb // which probably means there was an exception in the GUI code before the // action got going. Kill the task so that we don't block forever on // taskThread.Join(). Brought to light by CA-11100. - XenAPI.Task.destroy(Session, RelatedTask.opaque_ref); + DestroyTask(); } if (exception == null) exception = e;