[Pkg-telepathy-commits] [libnice] 215/265: agent: Factor out a tiny bit of common code

Simon McVittie smcv at debian.org
Wed May 14 12:05:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit 2246d419821ed5f7ff463ed64b7ebb0eb42309aa
Author: Philip Withnall <philip.withnall at collabora.co.uk>
Date:   Fri Mar 14 09:24:08 2014 +0000

    agent: Factor out a tiny bit of common code
---
 agent/agent.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/agent/agent.c b/agent/agent.c
index afebec9..d91b77d 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -2509,8 +2509,6 @@ static gboolean priv_add_remote_candidate (
       g_free (candidate->password);
       candidate->password = g_strdup (password);
     }
-    if (conn_check_add_for_candidate (agent, stream_id, component, candidate) < 0)
-      goto errors;
   }
   else {
     /* case 2: add a new candidate */
@@ -2547,9 +2545,10 @@ static gboolean priv_add_remote_candidate (
     if (foundation)
       g_strlcpy (candidate->foundation, foundation,
           NICE_CANDIDATE_MAX_FOUNDATION);
+  }
 
-    if (conn_check_add_for_candidate (agent, stream_id, component, candidate) < 0)
-      goto errors;
+  if (conn_check_add_for_candidate (agent, stream_id, component, candidate) < 0) {
+    goto errors;
   }
 
   return TRUE;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list