Return rpc_ok with label from original RPC request

pull/1143/head
John Simmonds 2020-02-11 18:15:17 +11:00 committed by GitHub
parent 03874c0bfa
commit 935a6acfc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -154,8 +154,7 @@ defmodule FarmbotCore.FarmwareRuntime do
end
def handle_info({:step_complete, ref, :ok}, %{scheduler_ref: ref} = state) do
label = UUID.uuid4()
result = %AST{kind: :rpc_ok, args: %{label: label}, body: []}
result = %AST{kind: :rpc_ok, args: %{label: state.rpc.args.label}, body: []}
ipc = add_header(result)
_reply = PipeWorker.write(state.response_pipe_handle, ipc)