projects
/
platform
/
upstream
/
libnice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39ae272
)
agent: Remove duplicated early return
author
Olivier Crête
<olivier.crete@collabora.com>
Mon, 3 May 2021 21:04:34 +0000
(17:04 -0400)
committer
Olivier Crête
<olivier.crete@collabora.com>
Mon, 3 May 2021 22:42:43 +0000
(18:42 -0400)
The type is already checked to not be peer reflexive earlier.
agent/agent.c
patch
|
blob
|
history
diff --git
a/agent/agent.c
b/agent/agent.c
index
75e2275
..
f65696b
100644
(file)
--- a/
agent/agent.c
+++ b/
agent/agent.c
@@
-3876,10
+3876,6
@@
static gboolean priv_add_remote_candidate (
else {
/* case 2: add a new candidate */
- if (type == NICE_CANDIDATE_TYPE_PEER_REFLEXIVE) {
- nice_debug("Agent %p : Warning: ignoring externally set peer-reflexive candidate!", agent);
- return FALSE;
- }
candidate = nice_candidate_new (type);
candidate->stream_id = stream_id;