Fix farmware not exiting cleanly

pull/974/head
Connor Rigby 2019-08-15 12:09:28 -07:00
parent f48732fd65
commit 90b039221e
No known key found for this signature in database
GPG Key ID: 29A88B24B70456E0
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ defmodule FarmbotCore.FarmwareRuntime do
end
# farmware exit
def handle_info({:DOWN, _ref, :process, cmd, _reason}, %{cmd: cmd} = state) do
def handle_info({:DOWN, _ref, :process, _pid, _reason}, %{cmd: _cmd_pid} = state) do
Logger.debug("Farmware exit")
{:stop, :normal, state}
end