summaryrefslogtreecommitdiff
path: root/lib/lsg/icecast.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2018-02-02 21:35:46 +0100
committerhref <href@random.sh>2018-02-02 21:35:46 +0100
commitc98ddad3263f6859af3c5c76fa197876743d5ded (patch)
tree9e20617da1089e918e0445162dc9bd8eb54f3459 /lib/lsg/icecast.ex
parentimport (diff)
sse / embedded player
Diffstat (limited to 'lib/lsg/icecast.ex')
-rw-r--r--lib/lsg/icecast.ex4
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