Fix timeouts

This commit is contained in:
Connor Rigby 2017-12-12 10:37:59 -08:00
parent 33bf0f2810
commit 6c7c038e4c

View file

@ -346,7 +346,7 @@ defmodule Farmbot.BotState do
end
defp do_handle([{:config, "settings", "auto_sync" = key, true = val} | rest], state) do
Farmbot.Repo.flip()
spawn Farmbot.Repo, :flip, []
new_config = Map.put(state.configuration, key, val)
new_state = %{state | configuration: new_config}
do_handle(rest, new_state)