Skip to content
Snippets Groups Projects
Commit 9c4e7806 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

AudioRtpFactory::stop() cannot fail

parent 25beb37d
Branches
Tags
No related merge requests found
......@@ -158,14 +158,10 @@ void AudioRtpFactory::start (AudioCodec* audiocodec)
void AudioRtpFactory::stop (void)
{
ost::MutexLock mutex (_audioRtpThreadMutex);
_info ("AudioRtpFactory: Stopping audio rtp session");
if (_rtpSession == NULL) {
_debug ("AudioRtpFactory: Rtp session already deleted");
if (_rtpSession == NULL)
return;
}
try {
if (_rtpSession->getAudioRtpType() == Sdes) {
localContext = static_cast<AudioSrtpSession *> (_rtpSession)->_localCryptoCtx;
remoteContext = static_cast<AudioSrtpSession *> (_rtpSession)->_remoteCryptoCtx;
......@@ -173,10 +169,6 @@ void AudioRtpFactory::stop (void)
delete _rtpSession;
_rtpSession = NULL;
} catch (...) {
_debug ("AudioRtpFactory: Error: Exception caught when stopping the audio rtp session");
throw AudioRtpFactoryException ("AudioRtpFactory: Error: caught exception in AudioRtpFactory::stop");
}
}
int AudioRtpFactory::getSessionMedia()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment