Commit b9f7189c authored by Ken Rockot's avatar Ken Rockot Committed by Commit Bot

Fix bad connection logic in ARC bluetooth bridge

Introduced by r567334. Oops.

Bug: b/110332037
Change-Id: Ie1262a09d2fcb19ee166cb46184c9d01cecf2e06
Reviewed-on: https://chromium-review.googlesource.com/1105462Reviewed-by: default avatarLuis Hector Chavez <lhchavez@chromium.org>
Commit-Queue: Ken Rockot <rockot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568463}
parent 397aebd9
...@@ -1857,7 +1857,7 @@ void ArcBluetoothBridge::OpenBluetoothSocket( ...@@ -1857,7 +1857,7 @@ void ArcBluetoothBridge::OpenBluetoothSocket(
mojo::ScopedHandle handle = mojo::ScopedHandle handle =
mojo::WrapPlatformHandle(mojo::PlatformHandle(std::move(sock))); mojo::WrapPlatformHandle(mojo::PlatformHandle(std::move(sock)));
if (handle.is_valid() != MOJO_RESULT_OK) { if (!handle.is_valid()) {
LOG(ERROR) << "Failed to wrap socket handle. Closing"; LOG(ERROR) << "Failed to wrap socket handle. Closing";
std::move(callback).Run(mojo::ScopedHandle()); std::move(callback).Run(mojo::ScopedHandle());
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment