1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-29 11:00:55 +02:00

Better error handling in stream forwarder

This commit is contained in:
Alexandre Iooss
2020-09-30 15:28:19 +02:00
parent 2550d75c57
commit 8883c878bf
3 changed files with 35 additions and 26 deletions

View File

@ -96,11 +96,8 @@ func main() {
go web.Serve(remoteSdpChan, localSdpChan, &cfg.Web)
go webrtc.Serve(remoteSdpChan, localSdpChan, &cfg.WebRTC)
// Init stream forwarding
err = forwarding.New(&cfg.Forwarding)
if err != nil {
log.Fatalln("Failed to init stream forwarding:", err)
}
// Configure stream forwarding
forwarding.New(cfg.Forwarding)
// Wait for routines
select {}