If there is no forwarding, drop forwarding channels
This commit is contained in:
parent
7325301574
commit
defba52569
|
@ -18,7 +18,9 @@ type Options map[string][]string
|
|||
func Serve(inputChannel chan srt.Packet, cfg Options) {
|
||||
if len(cfg) < 1 {
|
||||
// No forwarding, ignore
|
||||
return
|
||||
for {
|
||||
<-inputChannel // Clear input channel
|
||||
}
|
||||
}
|
||||
|
||||
log.Printf("Stream forwarding initialized")
|
||||
|
|
Loading…
Reference in New Issue