Changeset 15232 for branches/Async/HeuristicLab.Algorithms.DataAnalysis/3.4/FixedDataAnalysisAlgorithm.cs
- Timestamp:
- 07/13/17 15:53:56 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async/HeuristicLab.Algorithms.DataAnalysis/3.4/FixedDataAnalysisAlgorithm.cs
r15065 r15232 21 21 22 22 using System; 23 using System.Linq; 23 24 using System.Threading; 24 25 using HeuristicLab.Common; … … 77 78 } catch (OperationCanceledException) { 78 79 } catch (AggregateException ae) { 79 if (ae.InnerExceptions.Count == 1) OnExceptionOccurred(ae.InnerExceptions[0]); 80 else OnExceptionOccurred(ae); 80 OnExceptionOccurred(ae.InnerExceptions.SingleOrDefault() ?? ae); 81 81 } catch (Exception e) { 82 82 OnExceptionOccurred(e);
Note: See TracChangeset
for help on using the changeset viewer.