Skip to content

Fix AVDTP endpoint resource leak by clearing the in_use flag on strea…#923

Merged
zxzxwu merged 1 commit into
google:mainfrom
laozhuxinlu:avdtp_abort_issue_fix
May 20, 2026
Merged

Fix AVDTP endpoint resource leak by clearing the in_use flag on strea…#923
zxzxwu merged 1 commit into
google:mainfrom
laozhuxinlu:avdtp_abort_issue_fix

Conversation

@laozhuxinlu
Copy link
Copy Markdown
Contributor

Fix an AVDTP endpoint resource leak where the in_use flag was not cleared if a stream was closed or aborted before the RTP channel was established. Previously, this caused the endpoint to remain permanently locked, improperly rejecting subsequent SetConfiguration attempts with a SEP_IN_USE error. This patch ensures local_endpoint.in_use is properly reset to 0 when transitioning directly to the IDLE state. Additionally, it wires up the missing local endpoint event trigger for Abort commands to properly notify application listeners.

Comment thread bumble/avdtp.py
@zxzxwu zxzxwu merged commit 9cefde1 into google:main May 20, 2026
55 checks passed
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.

2 participants