Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/12 12:53:58 (12 years ago)
Author:
ascheibe
Message:

#1950

  • fixed a bug where runs were downloaded multiple times
  • fixed a bug where "Refresh automatically" wasn't disabled when the job was finished
  • added a locker around the code that integrates downloaded optimizers as in rare cases collections were modified by multiple threads which lead to an exception
File:
1 edited

Legend:

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

    r7259 r8871  
    334334    private void RegisterJobEvents() {
    335335      if (task != null)
    336         task.PropertyChanged += new PropertyChangedEventHandler(job_PropertyChanged);
     336        task.PropertyChanged += new PropertyChangedEventHandler(task_PropertyChanged);
    337337    }
    338338
    339339    private void DeregisterJobEvents() {
    340340      if (task != null)
    341         task.PropertyChanged += new PropertyChangedEventHandler(job_PropertyChanged);
    342     }
    343 
    344     private void job_PropertyChanged(object sender, PropertyChangedEventArgs e) {
     341        task.PropertyChanged += new PropertyChangedEventHandler(task_PropertyChanged);
     342    }
     343
     344    private void task_PropertyChanged(object sender, PropertyChangedEventArgs e) {
    345345      if (e.PropertyName == "State") {
    346346        IsFinishedTaskDownloaded = false;
Note: See TracChangeset for help on using the changeset viewer.