Skip to content

Commit

Permalink
remove Engine changes
Browse files Browse the repository at this point in the history
  • Loading branch information
szefo09 committed Dec 9, 2024
1 parent d94bad2 commit d4d9ac8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions octgnFX/Octgn.JodsEngine/Scripting/Engine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private void StartExecution(ScriptJobBase job)

private void ProcessExecutionQueue()
{
while (_executionQueue.Count > 0)
do
{
ScriptJobBase job = _executionQueue.Peek();
var scriptjob = job as ScriptJob;
Expand Down Expand Up @@ -495,14 +495,14 @@ private void ProcessExecutionQueue()
{
Program.GameMess.Warning("{0}", job.Result.Error.Trim());
}
if (job.Suspended) continue;
if (job.Suspended) return;
job.DispatcherSignal.Dispose();
job.WorkerSignal.Dispose();
_executionQueue.Dequeue();

if (job.Continuation != null)
job.Continuation(job.Result);
};
} while (_executionQueue.Count > 0);
}

private void Execute(Object state)
Expand Down

0 comments on commit d4d9ac8

Please sign in to comment.