Commit dd9b9e66 authored by Sebastian Biewer's avatar Sebastian Biewer

Fixes Redmine 260, 261

parent ff7d977a
......@@ -154,6 +154,8 @@ class PCCProcedure extends PC.Procedure
args.unshift(i) # Basically, here we replace 'starter' with the instance number of the new agent
compiler.emitProcessApplication(@getProcessName(), args)
control3.setBranchFinished()
if @.returnType.kind != PC.Type.VOID
compiler.emitInput("rreturn", null, new PCCVariableContainer("$0"))
compiler.emitOutput("agent_terminate", i, null)
compiler.emitStop()
control3.setBranchFinished()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment