public void Close()
{
if (!_isClosed)
{
try
{
logger.Debug("RTPChannel closing, RTP port " + _rtpPort + ".");
_isClosed = true;
if (_rtpSocket != null)
{
_rtpSocket.Close();
}
if (_controlSocket != null)
{
_controlSocket.Close();
}
}
catch (Exception excp)
{
logger.Error("Exception RTChannel.Close. " + excp);
}
}
}