Changeset 9390
- Timestamp:
- 04/22/13 17:24:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs
r9219 r9390 110 110 } 111 111 } else { 112 StopResultPolling();112 PauseResultPolling(); 113 113 } 114 114 } … … 239 239 public void StopResultPolling() { 240 240 if (jobResultPoller != null && jobResultPoller.IsPolling) { 241 refreshAutomatically = false; 241 242 jobResultPoller.Stop(); 242 243 DeregisterResultPollingEvents(); 244 jobResultPoller = null; 245 } 246 } 247 248 public void PauseResultPolling() { 249 if (jobResultPoller != null && jobResultPoller.IsPolling) { 250 jobResultPoller.Stop(); 243 251 } 244 252 } … … 515 523 public event EventHandler HiveTasksChanged; 516 524 protected virtual void OnHiveTasksChanged() { 517 StopResultPolling();518 525 if (this.HiveTasks != null && this.HiveTasks.Count > 0 && this.GetAllHiveTasks().All(x => x.Task.Id != Guid.Empty)) { 519 526 if (IsFinished()) { 520 527 this.ExecutionState = Core.ExecutionState.Stopped; 521 528 this.RefreshAutomatically = false; 522 if (jobResultPoller != null) DeregisterResultPollingEvents();529 StopResultPolling(); 523 530 } else { 524 531 this.RefreshAutomatically = true;
Note: See TracChangeset
for help on using the changeset viewer.