Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bumble/avdtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,7 @@ async def on_close_command(self) -> Message | None:

if self.rtp_channel is None:
# No channel to release, we're done
self.local_endpoint.in_use = 0
Comment thread
laozhuxinlu marked this conversation as resolved.
self.change_state(State.IDLE)
else:
# TODO: set a timer as we wait for the RTP channel to be closed
Expand All @@ -2050,6 +2051,7 @@ async def on_abort_command(self) -> Message | None:
await self.local_endpoint.on_abort_command()
if self.rtp_channel is None:
# No need to wait
self.local_endpoint.in_use = 0
self.change_state(State.IDLE)
else:
# Wait for the RTP channel to be closed
Expand Down
Loading