diff --git a/examples/chip-tool/commands/clusters/ModelCommand.h b/examples/chip-tool/commands/clusters/ModelCommand.h index 9ce82a3592a51a..25ff96ab870e91 100644 --- a/examples/chip-tool/commands/clusters/ModelCommand.h +++ b/examples/chip-tool/commands/clusters/ModelCommand.h @@ -49,6 +49,12 @@ class ModelCommand : public CHIPCommand return CHIP_ERROR_BAD_REQUEST; }; + void Shutdown() override + { + mOnDeviceConnectedCallback.Cancel(); + mOnDeviceConnectionFailureCallback.Cancel(); + } + private: chip::NodeId mNodeId; std::vector mEndPointId;