[Nearby] Use SharedRemote in Bluetooth Socket
Previously, the socket's remote was bound on a different thread from the one that would eventually call Disconnect which was causing a deadlock when Nearby Connections was cleaning up a channel. By switching to a shared remote that is explicitly bound on the task runner we avoid the deadlock with minimal changes. Fixed: 1132738 Change-Id: I19f89d5f38cc6ae88237038aa3cc0cc6e3eb8f5b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2437689 Auto-Submit: James Vecore <vecore@google.com> Reviewed-by:Ryan Hansberry <hansberry@chromium.org> Commit-Queue: James Vecore <vecore@google.com> Cr-Commit-Position: refs/heads/master@{#812255}
Showing
Please register or sign in to comment