Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/19/20 13:50:24 (4 years ago)
Author:
jkarder
Message:

#3060: catch unhandled exceptions thrown by IOptimizer.StartAsync()

Location:
trunk/HeuristicLab.Clients.Hive/3.3/Tasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Clients.Hive/3.3/Tasks/EngineTask.cs

    r17180 r17445  
    8080
    8181    public override async void Start() {
    82       Item.Prepare(initialOperation);
    83       await Item.StartAsync();
     82      try {
     83        Item.Prepare(initialOperation);
     84        await Item.StartAsync();
     85      } catch (Exception e) {
     86        engine_ExceptionOccurred(Item, new EventArgs<Exception>(e));
     87      }
    8488    }
    8589
  • trunk/HeuristicLab.Clients.Hive/3.3/Tasks/OptimizerTask.cs

    r17180 r17445  
    101101        OnTaskStopped();
    102102      } else {
    103         await Item.StartAsync();
     103        try {
     104          await Item.StartAsync();
     105        } catch (Exception e) {
     106          optimizer_ExceptionOccurred(Item, new EventArgs<Exception>(e));
     107        }
    104108      }
    105109    }
Note: See TracChangeset for help on using the changeset viewer.