Skip to content

fix: close a peer connection at once while another call still uses it - #524

Merged
devopvoid merged 2 commits into
mainfrom
fix/close-at-once
Nov 3, 2026
Merged

devopvoid merged 2 commits into
mainfrom
fix/close-at-once

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

Since the handle leases, close() put off closing the connection until no
other thread was in one of its methods, so the connection kept running,
and took new tracks, after close() had returned. It is now closed right
away (right after the callback when called from one); only freeing the
observer and the connection waits for those methods.
…urned

The result of setting the description is dropped only when the connection
is freed right after the callback, which waits for methods running on
other threads: the createOffer of the test thread had not always returned.
@devopvoid
devopvoid merged commit 5367e7e into main Nov 3, 2026
20 of 22 checks passed
@devopvoid
devopvoid deleted the fix/close-at-once branch November 3, 2026 09:14
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.

1 participant