mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Log potential errors returned by http.ListenAndServe (#345)
This commit is contained in:
parent
e83cca9338
commit
8d9eb1e79f
@ -35,7 +35,13 @@ func (s *FileWriterReceiverService) SetupFileWriterReceiverService(callbacks Fil
|
|||||||
httpServer.HandleFunc("/", s.uploadHandler)
|
httpServer.HandleFunc("/", s.uploadHandler)
|
||||||
|
|
||||||
localListenerAddress := "127.0.0.1:" + strconv.Itoa(config.Config.GetPublicWebServerPort()+1)
|
localListenerAddress := "127.0.0.1:" + strconv.Itoa(config.Config.GetPublicWebServerPort()+1)
|
||||||
go http.ListenAndServe(localListenerAddress, httpServer)
|
|
||||||
|
go func() {
|
||||||
|
if err := http.ListenAndServe(localListenerAddress, httpServer); err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
log.Traceln("Transcoder response listening on: " + localListenerAddress)
|
log.Traceln("Transcoder response listening on: " + localListenerAddress)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user