Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow add_ice_candidate when current_remote_description is not set #92

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

LVala
Copy link
Member

@LVala LVala commented Mar 21, 2024

This PR fixes a bug that makes it impossible to use add_ice_candidate with only pending remote description.

@LVala LVala self-assigned this Mar 21, 2024
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

Merging #92 (3ec9a0f) into master (49dfba7) will not change coverage.
The diff coverage is 0.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #92   +/-   ##
=======================================
  Coverage   88.68%   88.68%           
=======================================
  Files          31       31           
  Lines        1503     1503           
=======================================
  Hits         1333     1333           
  Misses        170      170           
Files Coverage Δ
lib/ex_webrtc/peer_connection.ex 85.58% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49dfba7...3ec9a0f. Read the comment docs.

@LVala LVala requested a review from mickel8 March 21, 2024 15:03
def handle_call(
{:add_ice_candidate, _},
_from,
%{current_remote_desc: crd, pending_remote_desc: prd} = state
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%{current_remote_desc: crd, pending_remote_desc: prd} = state
%{current_remote_desc: nil, pending_remote_desc: nil} = state

@LVala LVala merged commit c8ebd3d into master Mar 21, 2024
4 checks passed
@LVala LVala deleted the fix-aic-with-rd branch March 21, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants