Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Mar 30, 2022
1 parent 767280b commit 4885e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/SetUpCodePairer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ void SetUpCodePairer::OnDiscoveredDeviceOverBle(BLE_CONNECTION_OBJECT connObj)
{
ChipLogProgress(Controller, "Discovered device to be commissioned over BLE");

mWaitingForDiscovery[kBLETransport] = false;

// Probably safe to stop connections over other transports at this point?
LogErrorOnFailure(StopConnectOverIP());
LogErrorOnFailure(StopConnectOverSoftAP());
Expand Down Expand Up @@ -277,8 +279,6 @@ void SetUpCodePairer::NotifyCommissionableDeviceDiscovered(const Dnssd::Discover

ChipLogProgress(Controller, "Discovered device to be commissioned over DNS-SD");

mWaitingForDiscovery[kIPTransport] = false;

// Don't stop trying to connect over BLE, because we may be dealing with
// stale DNS-SD records.
LogErrorOnFailure(StopConnectOverIP());
Expand Down

0 comments on commit 4885e87

Please sign in to comment.