mirror of
https://github.com/google/bumble.git
synced 2026-06-01 07:37:02 +00:00
Merge pull request #923 from laozhuxinlu/avdtp_abort_issue_fix
Fix AVDTP endpoint resource leak by clearing the in_use flag on strea…
This commit is contained in:
@@ -2039,6 +2039,7 @@ class Stream:
|
||||
|
||||
if self.rtp_channel is None:
|
||||
# No channel to release, we're done
|
||||
self.local_endpoint.in_use = 0
|
||||
self.change_state(State.IDLE)
|
||||
else:
|
||||
# TODO: set a timer as we wait for the RTP channel to be closed
|
||||
@@ -2050,6 +2051,7 @@ class Stream:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user