Changeset 15232 for branches/Async/HeuristicLab.Core/3.3/Engine.cs
- Timestamp:
- 07/13/17 15:53:56 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async/HeuristicLab.Core/3.3/Engine.cs
r15065 r15232 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 24 25 using System.Threading; 25 26 using HeuristicLab.Common; … … 90 91 } catch (OperationCanceledException) { 91 92 } catch (AggregateException ae) { 92 if (ae.InnerExceptions.Count == 1) OnExceptionOccurred(ae.InnerExceptions[0]); 93 else OnExceptionOccurred(ae); 93 OnExceptionOccurred(ae.InnerExceptions.SingleOrDefault() ?? ae); 94 94 } catch (Exception e) { 95 95 OnExceptionOccurred(e);
Note: See TracChangeset
for help on using the changeset viewer.