Skip to content

Commit

Permalink
Modify android chiptool crash
Browse files Browse the repository at this point in the history
  • Loading branch information
joonhaengHeo committed Apr 2, 2024
1 parent 6c89640 commit c6fc73f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1770,13 +1770,13 @@ void DeviceCommissioner::CleanupCommissioning(DeviceProxy * proxy, NodeId nodeId

if (completionStatus.err == CHIP_NO_ERROR)
{
CommissioningStageComplete(CHIP_NO_ERROR);
CommissioneeDeviceProxy * commissionee = FindCommissioneeDevice(nodeId);
if (commissionee != nullptr)
{
ReleaseCommissioneeDevice(commissionee);
}
// Send the callbacks, we're done.
CommissioningStageComplete(CHIP_NO_ERROR);
SendCommissioningCompleteCallbacks(nodeId, mCommissioningCompletionStatus);
}
else if (completionStatus.err == CHIP_ERROR_CANCELLED)
Expand Down Expand Up @@ -2716,6 +2716,8 @@ void DeviceCommissioner::PerformCommissioningStep(DeviceProxy * proxy, Commissio
params.GetCompletionStatus().err.AsString());
}

ChipLogProgress(Controller, "proxy : %p", proxy);

mCommissioningStage = step;
mCommissioningDelegate = delegate;
mDeviceBeingCommissioned = proxy;
Expand Down

0 comments on commit c6fc73f

Please sign in to comment.