Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9903


Ignore:
Timestamp:
08/23/13 10:28:07 (11 years ago)
Author:
ascheibe
Message:

#2097 merged r9902 into stable branch

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Clients.Hive/3.3/ConcurrentTaskDownloader.cs

    r9456 r9903  
    4646
    4747      task.ContinueWith((x) => OnTaskFinished(x, onFinishedAction), TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnRanToCompletion);
    48       task.ContinueWith((x) => OnTaskFailed(x, onFinishedAction), TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnFaulted);
     48      task.ContinueWith((x) => OnTaskFailed(x), TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnFaulted);
    4949    }
    5050
     
    5555
    5656      task.ContinueWith((x) => OnTaskFinished(x, onFinishedAction), TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnRanToCompletion);
    57       task.ContinueWith((x) => OnTaskFailed(x, onFinishedAction), TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnFaulted);
     57      task.ContinueWith((x) => OnTaskFailed(x), TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyOnFaulted);
    5858    }
    5959
     
    6161      onFinishedAction(task.Result.Item1, task.Result.Item2);
    6262    }
    63     private void OnTaskFailed(Task<Tuple<Task, T>> task, Action<Task, T> onFinishedAction) {
     63    private void OnTaskFailed(Task<Tuple<Task, T>> task) {
    6464      task.Exception.Flatten().Handle((e) => { return true; });
    6565      OnExceptionOccured(task.Exception.Flatten());
    66       onFinishedAction(task.Result.Item1, null);
    6766    }
    6867
Note: See TracChangeset for help on using the changeset viewer.