Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix chip-tool open-commissioning-window to not crash. (#11645)
PairingCommand::RunCommand called mController.RegisterPairingDelegate even in the open-commissioning-window case. Then when the device was connected we'd land in DeviceCommissioner::OnDeviceConnectedFn. This would call OnCommissioningComplete on the pairing delegate, which would land us in PairingCommand::OnCommissioningComplete and thinks the command is done. So we would exit without waiting for an actual response from the server and with exchanges still open. In PairingMode::OpenCommissioningWindow we should not be registering as a pairing delegate and whatnot; we are just sending normal cluster commands. Fixes #11644
- Loading branch information