From 71d8e424c42138ec870d51650ed8ac332dfdc1d8 Mon Sep 17 00:00:00 2001 From: Joshua Villasenor Date: Thu, 6 Jan 2022 15:18:35 -0800 Subject: [PATCH] Do not remove event handler when called. --- examples/placeholder/linux/include/TestCommand.h | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/placeholder/linux/include/TestCommand.h b/examples/placeholder/linux/include/TestCommand.h index 2ef81055b8b59b..f70ea183246635 100644 --- a/examples/placeholder/linux/include/TestCommand.h +++ b/examples/placeholder/linux/include/TestCommand.h @@ -74,7 +74,6 @@ class TestCommand { case chip::DeviceLayer::DeviceEventType::kCommissioningComplete: ChipLogProgress(chipTool, "Commissioning complete"); - chip::DeviceLayer::PlatformMgr().RemoveEventHandler(OnPlatformEvent, arg); TestCommand * command = reinterpret_cast(arg); command->isRunning = true;