Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/27/15 18:21:36 (10 years ago)
Author:
jkarder
Message:

#2077: set scriptThread to null when the script completes execution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scripting/3.3/Scripts/CSharp/CSharpScript.cs

    r11787 r11834  
    107107          ex = e;
    108108        } finally {
     109          scriptThread = null;
    109110          OnScriptExecutionFinished(ex);
    110111        }
     
    115116
    116117    public virtual void Kill() {
    117       if (scriptThread.IsAlive)
    118         scriptThread.Abort();
     118      if (scriptThread == null) return;
     119      scriptThread.Abort();
    119120    }
    120121
Note: See TracChangeset for help on using the changeset viewer.