Skip to content

Commit 12d8487

Browse files
Not call OnReadCommissioningInfo when error happens (project-chip#32551)
1 parent bf7241d commit 12d8487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/CHIPDeviceController.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,7 @@ void DeviceCommissioner::ParseCommissioningInfo()
19831983
// return.
19841984
auto attributeCache = std::move(mAttributeCache);
19851985

1986-
if (mPairingDelegate != nullptr)
1986+
if (mPairingDelegate != nullptr && err == CHIP_NO_ERROR)
19871987
{
19881988
mPairingDelegate->OnReadCommissioningInfo(info);
19891989
}

0 commit comments

Comments
 (0)