diff --git a/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp b/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp index af82296a5ecdbc..da9f7884d094e1 100644 --- a/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp +++ b/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp @@ -160,7 +160,7 @@ bool AllClustersAppCommandHandler::IsClusterPresentOnAnyEndpoint(ClusterId clust void AllClustersAppCommandHandler::OnRebootSignalHandler(BootReasonType bootReason) { - if (ConfigurationMgr().StoreBootReason(static_cast(bootReason)) != CHIP_NO_ERROR) + if (ConfigurationMgr().StoreBootReason(static_cast(bootReason)) == CHIP_NO_ERROR) { Server::GetInstance().GenerateShutDownEvent(); PlatformMgr().ScheduleWork([](intptr_t) { PlatformMgr().StopEventLoopTask(); });