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

Unify the forwarding package start with the other, start it in a go routine

This commit is contained in:
Yohann D'ANELLO
2020-10-01 19:26:12 +02:00
parent 98d5c609a3
commit d7e104261f
3 changed files with 6 additions and 8 deletions

View File

@ -56,7 +56,7 @@ func TestForwardStream(t *testing.T) {
forwardingChannel = make(chan srt.Packet)
// Register forwarding stream list
New(forwardingList, forwardingChannel)
Serve(forwardingList, forwardingChannel)
// Serve HTTP Server
go srt.Serve(&srt.Options{ListenAddress: ":9712", MaxClients: 2}, forwardingChannel)