mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-23 00:22:19 +00:00
Forwarding test must serve then the forwarding package in a subroutine
This commit is contained in:
parent
d7e104261f
commit
650040ef10
@ -56,7 +56,7 @@ func TestForwardStream(t *testing.T) {
|
|||||||
forwardingChannel = make(chan srt.Packet)
|
forwardingChannel = make(chan srt.Packet)
|
||||||
|
|
||||||
// Register forwarding stream list
|
// Register forwarding stream list
|
||||||
Serve(forwardingList, forwardingChannel)
|
go Serve(forwardingList, forwardingChannel)
|
||||||
|
|
||||||
// Serve HTTP Server
|
// Serve HTTP Server
|
||||||
go srt.Serve(&srt.Options{ListenAddress: ":9712", MaxClients: 2}, forwardingChannel)
|
go srt.Serve(&srt.Options{ListenAddress: ":9712", MaxClients: 2}, forwardingChannel)
|
||||||
|
Loading…
Reference in New Issue
Block a user