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)
|
||||
|
||||
// Register forwarding stream list
|
||||
Serve(forwardingList, forwardingChannel)
|
||||
go Serve(forwardingList, forwardingChannel)
|
||||
|
||||
// Serve HTTP Server
|
||||
go srt.Serve(&srt.Options{ListenAddress: ":9712", MaxClients: 2}, forwardingChannel)
|
||||
|
|
Loading…
Reference in New Issue