diff options
author | href <href@random.sh> | 2018-02-02 21:35:46 +0100 |
---|---|---|
committer | href <href@random.sh> | 2018-02-02 21:35:46 +0100 |
commit | c98ddad3263f6859af3c5c76fa197876743d5ded (patch) | |
tree | 9e20617da1089e918e0445162dc9bd8eb54f3459 /lib/lsg | |
parent | import (diff) |
sse / embedded player
Diffstat (limited to 'lib/lsg')
-rw-r--r-- | lib/lsg/icecast.ex | 4 |
1 files changed, 2 insertions, 2 deletions
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 |