Fix long lines in amqp

This commit is contained in:
Connor Rigby 2017-12-28 09:58:35 -08:00 committed by Connor Rigby
parent 85532cf946
commit dcd9528456

View file

@ -89,8 +89,9 @@ defmodule Farmbot.BotState.Transport.AMQP do
if state.conn, do: AMQP.Connection.close(state.conn)
# If the auth task is running, force it to reset.
if Process.whereis(Farmbot.Bootstrap.AuthTask) && reason != :token_refresh do
Farmbot.Bootstrap.AuthTask.force_refresh()
auth_task = Farmbot.Bootstrap.AuthTask
if Process.whereis(auth_task) && reason != :token_refresh do
auth_task.force_refresh()
end
end