commit | ba09ccc1bd4929f4da3c2e26d37032a260801eff | [log] [tgz] |
---|---|---|
author | Marie Janssen 💖 <jamuraa@google.com> | Fri Apr 19 21:30:52 2019 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Fri Apr 19 21:30:52 2019 +0000 |
tree | 899a8d3067869d922ae9321ee3ae683e8e89f393 | |
parent | 7158218686512b9cef27c63eb12e7e219ba2a187 [diff] |
[bt][a2dp-sink] Detect socket close on AVDTP close When a peer sent us a close signal, a 3 second timer would wait for the peer to close the transport (as in AVDTP spec section 6.3) before checking. Instead complete the operation when the peer disconnects the transport socket. This mitigates a race condition where the a2dp-sink could mistakenly add a second RemotePeer tracking the same peer while in the wait, and that new peer would be removed, causing a panic when the peer couldn't be found when it sent commands. Test: connect to bt-a2dp-sink from android, reconnect quickly BT-730 #done Change-Id: Ia4adeced5e49c225228bbd0ba5314021203e5034
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See the documentation.