Skip to content

Commit

Permalink
Fix OnPairingComplete is not called if pairing code is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Trushkin committed Oct 18, 2024
1 parent 2574847 commit 9607577
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1141,11 +1141,10 @@ void DeviceCommissioner::RendezvousCleanup(CHIP_ERROR status)
// for IP commissioning, we have taken a reference to the
// operational node to send the completion command.
ReleaseCommissioneeDevice(mDeviceInPASEEstablishment);

if (mPairingDelegate != nullptr)
{
mPairingDelegate->OnPairingComplete(status);
}
}
if (CHIP_NO_ERROR != status && mPairingDelegate != nullptr)
{
mPairingDelegate->OnPairingComplete(status);
}
}

Expand Down

0 comments on commit 9607577

Please sign in to comment.