From f9866a30ce612cbfc5b0f023d32b93b76f48c1e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?=
 <rafael.carre@savoirfairelinux.com>
Date: Thu, 28 Jul 2011 14:13:34 -0400
Subject: [PATCH] * #6547 : AudioRtpSession: remove impossible error case

_ca is set in constructor and never modified
---
 sflphone-common/src/audio/audiortp/AudioRtpSession.cpp | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sflphone-common/src/audio/audiortp/AudioRtpSession.cpp b/sflphone-common/src/audio/audiortp/AudioRtpSession.cpp
index eaf48e81d5..59d96332e5 100644
--- a/sflphone-common/src/audio/audiortp/AudioRtpSession.cpp
+++ b/sflphone-common/src/audio/audiortp/AudioRtpSession.cpp
@@ -168,11 +168,6 @@ void AudioRtpSession::setDestinationIpAddress (void)
 {
     _info ("AudioRtpSession: Setting IP address for the RTP session");
 
-    if (_ca == NULL) {
-        _error ("AudioRtpSession: Sipcall is gone.");
-        throw AudioRtpSessionException();
-    }
-
     // Store remote ip in case we would need to forget current destination
     _remote_ip = ost::InetHostAddress (_ca->getLocalSDP()->getRemoteIP().c_str());
     if (!_remote_ip) {
-- 
GitLab