close Channel after stopping recv send queues (#808)
close Channel after stopping recv send queues (#808)

Channel is used by recv and send queues and possible blocked in I/O
operations.  Closing the channel while it is still in use causes
problems with the recv and send queues and may cause problems in other
threads of the application.
ethouris/srt,Cinegy/srt,Cinegy/srt,ethouris/srt,Cinegy/srt,Cinegy/srt,ethouris/srt,Haivision/srt,Haivision/srt,ethouris/srt,Haivision/srt,Haivision/srt