Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9902


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

#2097 prevent Hive Job Manger from crashing when downloading a job that cannot be deserialized

File:
1 edited

Legend:

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

    r9456 r9902  
    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.