Skip to content

Commit

Permalink
Do not remove event handler when called. (#13351)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh V [Apple] authored Jan 7, 2022
1 parent 0e321bf commit 6e14b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/placeholder/linux/include/TestCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ class TestCommand
{
case chip::DeviceLayer::DeviceEventType::kCommissioningComplete:
ChipLogProgress(chipTool, "Commissioning complete");
chip::DeviceLayer::PlatformMgr().RemoveEventHandler(OnPlatformEvent, arg);

TestCommand * command = reinterpret_cast<TestCommand *>(arg);
command->isRunning = true;
command->NextTest();
chip::DeviceLayer::PlatformMgr().RemoveEventHandler(OnPlatformEvent, arg);
break;
}
}
Expand Down

0 comments on commit 6e14b75

Please sign in to comment.