| Index: components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
|
| diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
|
| index 0fdec853b5413b4141f93d0891728f41fb6628cb..a9aea04f574a2081c13aca9355ebe45acf93c940 100644
|
| --- a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
|
| +++ b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc
|
| @@ -154,7 +154,7 @@ bool BluetoothLowEnergyConnectionFinder::HasService(
|
|
|
| void BluetoothLowEnergyConnectionFinder::OnCreateConnectionError(
|
| BluetoothDevice::ConnectErrorCode error_code) {
|
| - VLOG(1) << "Error creating connection";
|
| + VLOG(1) << "Error creating connection: " << error_code;
|
| }
|
|
|
| void BluetoothLowEnergyConnectionFinder::OnConnectionCreated(
|
| @@ -162,7 +162,10 @@ void BluetoothLowEnergyConnectionFinder::OnConnectionCreated(
|
| VLOG(1) << "Connection created";
|
| connected_ = true;
|
| StopDiscoverySession();
|
| - connection_callback_.Run(connection.Pass());
|
| + if (!connection_callback_.is_null()) {
|
| + connection_callback_.Run(connection.Pass());
|
| + connection_callback_.Reset();
|
| + }
|
| }
|
|
|
| void BluetoothLowEnergyConnectionFinder::CreateConnection(
|
|
|