Skip to content

Commit

Permalink
Add assertChipStackLockedByCurrentThread for LogEvent (#31895)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google authored Feb 6, 2024
1 parent e882141 commit 86977c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/EventManagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ void EventManagement::VendEventNumber()
CHIP_ERROR EventManagement::LogEvent(EventLoggingDelegate * apDelegate, const EventOptions & aEventOptions,
EventNumber & aEventNumber)
{
assertChipStackLockedByCurrentThread();
VerifyOrReturnError(mState != EventManagementStates::Shutdown, CHIP_ERROR_INCORRECT_STATE);
return LogEventPrivate(apDelegate, aEventOptions, aEventNumber);
}
Expand Down

0 comments on commit 86977c2

Please sign in to comment.