[#49] fixing issue with history when the dashboard is down

This commit is contained in:
Felipe Ripoll 2018-05-25 05:41:42 -06:00
parent e4fff6ee7c
commit 1ea78583c0
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ defmodule POAAgent.Plugins.Transfers.WebSocket.Primus do
address = Map.fetch!(state, :address)
case Primus.Client.start_link(address, state) do
{:ok, client} ->
hello_timer_ref = set_hello_timer(seconds: 0)
set_up_and_send_hello(client, state)
hello_timer_ref = set_hello_timer(seconds: 60)
ping_timer_ref = set_ping_timer()
:ok = send_last_metrics(client, state)