Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/31/08 00:15:31 (16 years ago)
Author:
gkronber
Message:

fixed #212

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Grid/ClientForm.cs

    r402 r412  
    151151
    152152    void currentEngine_Finished(object sender, EventArgs e) {
    153       IEngine engine = (IEngine)sender;
     153      ProcessingEngine engine = (ProcessingEngine)sender;
     154
     155      // if the engine was stopped because of an error it's not necessary to return the whole engine
     156      // instead just return an empty engine that has the aborted flag set
     157      if(engine.Canceled) {
     158        engine.Reset();
     159        engine.OperatorGraph.Clear();
     160        engine.Abort();
     161      }
     162
    154163      byte[] resultXml = SaveEngine(engine);
    155164      bool success = false;
Note: See TracChangeset for help on using the changeset viewer.