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 multiple agent.Close #718

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Allow multiple agent.Close #718

merged 1 commit into from
Aug 6, 2024

Conversation

edaniels
Copy link
Member

@edaniels edaniels commented Aug 5, 2024

There's a case in webrtc GracefulClose (https://github.com/pion/webrtc/pull/2847/files#diff-61936a3824ea2f65378ca63d509769a4dc6b52a1685845f764089fe03de2f4c3R213-R216) where it would be beneficial to wait for the ICE agent to gracefully close but due to how Mux works, it's hard to thread it through without calling GracefulClose and then Close on the agent. That makes an error happen that doesn't seem necessary. If you close twice, that feels okay.

Copy link

codecov bot commented Aug 5, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 79.22%. Comparing base (63ede54) to head (8c3fb43).

Files Patch % Lines
internal/taskloop/taskloop.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #718      +/-   ##
==========================================
+ Coverage   79.17%   79.22%   +0.04%     
==========================================
  Files          41       41              
  Lines        3780     3779       -1     
==========================================
+ Hits         2993     2994       +1     
+ Misses        556      555       -1     
+ Partials      231      230       -1     
Flag Coverage Δ
go 79.22% <75.00%> (+0.04%) ⬆️
wasm 22.48% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Sean-Der Sean-Der merged commit 28cf1cd into master Aug 6, 2024
15 checks passed
@Sean-Der Sean-Der deleted the no_close_err branch August 6, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants