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:
7
main.go
7
main.go
@ -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 {}
|
||||
|
Reference in New Issue
Block a user