Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handle cleanup in CommandHandler. (project-chip#34262)
When a CommandHandler went away, it invalidated its handles, but did not remove them from the list. This would cause it to fail a fatal assert when the non-empty list was destroyed. The fix is to clear the list once we have invalidated all the handles, since we no longer need to track them once they have been invalidated.
- Loading branch information