Skip to content

Commit

Permalink
Merge pull request #265 from paullouisageneau/fix-remote-description-…
Browse files Browse the repository at this point in the history
…check

Fix remote description already set check
  • Loading branch information
paullouisageneau authored Aug 14, 2024
2 parents 77124eb + 38155aa commit 7678474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ int agent_set_remote_description(juice_agent_t *agent, const char *sdp) {

if (*agent->remote.ice_ufrag) {
// There is already a remote description
if (strcmp(agent->remote.ice_ufrag, remote.ice_ufrag) == 0 ||
if (strcmp(agent->remote.ice_ufrag, remote.ice_ufrag) == 0 &&
strcmp(agent->remote.ice_pwd, remote.ice_pwd) == 0) {
JLOG_DEBUG("Remote description is already set, ignoring");
conn_unlock(agent);
Expand Down

0 comments on commit 7678474

Please sign in to comment.