From c98ddad3263f6859af3c5c76fa197876743d5ded Mon Sep 17 00:00:00 2001 From: href Date: Fri, 2 Feb 2018 21:35:46 +0100 Subject: sse / embedded player --- lib/lsg/icecast.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/lsg') diff --git a/lib/lsg/icecast.ex b/lib/lsg/icecast.ex index ec168c3..21a9ea2 100644 --- a/lib/lsg/icecast.ex +++ b/lib/lsg/icecast.ex @@ -1,7 +1,7 @@ defmodule LSG.Icecast do use GenServer require Logger - @interval 10_000 + @interval 2_500 @hackney_pool :default @httpoison_opts [hackney: [pool: @hackney_pool]] @fuse __MODULE__ @@ -42,7 +42,7 @@ defmodule LSG.Icecast do Logger.error "Icecast HTTP Error: #{inspect error}" state end - :timer.send_after(5_000, :poll) + :timer.send_after(@interval, :poll) state end -- cgit v1.2.3