UpdateInterval called instead of Update on first stream run
This commit is contained in:
parent
30d693d0fe
commit
1582a4714d
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -34,7 +34,7 @@ func (server Server) index(w http.ResponseWriter, r *http.Request) {
|
|||
if !exists {
|
||||
stream = NewStream(URL)
|
||||
server.Streams[URL] = stream
|
||||
go stream.Update()
|
||||
go stream.UpdateInterval()
|
||||
}
|
||||
streamTemplate, err := template.ParseFiles(streamHTML, baseHTML)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue