[Nearby] Allow BluetoothSocket::Close() to be called multiple times
After a successful payload transfer, BluetoothSocket::Close() will be called multiple times (see crbug/1142071). In this CL, we check if the underlying socket has already been disconnected and reset before trying to disconnect and reset. Without this check, the Nearby process will crash after a successful share. Verified by manually testing Chromebook-->Android transfers. Fixed: 1142071 Change-Id: I1b2fd0a092f1025f95c2eed5253862805e46b034 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500982 Commit-Queue: Josh Nohle <nohle@chromium.org> Commit-Queue: Ryan Hansberry <hansberry@chromium.org> Auto-Submit: Josh Nohle <nohle@chromium.org> Reviewed-by:Ryan Hansberry <hansberry@chromium.org> Cr-Commit-Position: refs/heads/master@{#821033}
Showing
Please register or sign in to comment