From c6fc73f07c4ad6153060f6bd96d0325aeb18c85f Mon Sep 17 00:00:00 2001 From: Joonhaeng Heo Date: Tue, 2 Apr 2024 16:23:30 +0900 Subject: [PATCH] Modify android chiptool crash --- src/controller/CHIPDeviceController.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp index fa65b96db66e45..b4b598b0a2b7ab 100644 --- a/src/controller/CHIPDeviceController.cpp +++ b/src/controller/CHIPDeviceController.cpp @@ -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) @@ -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;