Skip to content

Commit

Permalink
When main script dies all child scripts have to be stopped as well. (Z…
Browse files Browse the repository at this point in the history
  • Loading branch information
JMS-1 authored Aug 5, 2024
1 parent 39f4ad9 commit 6c2b431
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/Scripting/Engine/ScriptEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ private void RunScript(object? state)
}
try
{
/* Make sure child processes will terminate as soon as possible. */
_cancel.Cancel();

_done = true;

/* Forward the information on the now terminated script. */
Expand Down

0 comments on commit 6c2b431

Please sign in to comment.