Changeset 7144


Ignore:
Timestamp:
12/06/11 19:44:14 (8 years ago)
Author:
ascheibe
Message:

#1672 stop result polling before deleting a job

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveClient.cs

    r7132 r7144  
    177177      if (item is Job)
    178178        HiveServiceLocator.Instance.CallHiveService(s => s.DeleteJob(item.Id));
    179       if (item is RefreshableJob)
     179      if (item is RefreshableJob) {
     180        RefreshableJob job = (RefreshableJob)item;
     181        if (job.RefreshAutomatically) {
     182          job.StopResultPolling();
     183        }
    180184        HiveServiceLocator.Instance.CallHiveService(s => s.DeleteJob(item.Id));
     185      }
    181186      if (item is JobPermission) {
    182187        var hep = (JobPermission)item;
Note: See TracChangeset for help on using the changeset viewer.