Changeset 11937 for stable/HeuristicLab.Scripting/3.3/Scripts/CSharp
- Timestamp:
- 02/06/15 12:44:09 (10 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Scripting/3.3/Scripts/CSharp/CSharpScript.cs
r11787 r11937 102 102 OnScriptExecutionStarted(); 103 103 compiledScript.Execute(VariableStore); 104 } catch (ThreadAbortException) {105 // the execution was cancelled by the user106 104 } catch (Exception e) { 107 105 ex = e; 108 106 } finally { 107 scriptThread = null; 109 108 OnScriptExecutionFinished(ex); 110 109 } … … 115 114 116 115 public virtual void Kill() { 117 if (scriptThread .IsAlive)118 116 if (scriptThread == null) return; 117 scriptThread.Abort(); 119 118 } 120 119
Note: See TracChangeset
for help on using the changeset viewer.