- Timestamp:
- 07/13/17 15:53:56 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async/HeuristicLab.Optimization/3.3/Algorithms/BasicAlgorithm.cs
r15215 r15232 21 21 22 22 using System; 23 using System.Linq; 23 24 using System.Threading; 24 25 using HeuristicLab.Common; … … 69 70 } catch (OperationCanceledException) { 70 71 } catch (AggregateException ae) { 71 if (ae.InnerExceptions.Count == 1) OnExceptionOccurred(ae.InnerExceptions[0]); 72 else OnExceptionOccurred(ae); 72 OnExceptionOccurred(ae.InnerExceptions.SingleOrDefault() ?? ae); 73 73 } catch (Exception e) { 74 74 OnExceptionOccurred(e);
Note: See TracChangeset
for help on using the changeset viewer.