Skip to content

Commit 86977c2

Browse files
Add assertChipStackLockedByCurrentThread for LogEvent (project-chip#31895)
1 parent e882141 commit 86977c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/EventManagement.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ void EventManagement::VendEventNumber()
413413
CHIP_ERROR EventManagement::LogEvent(EventLoggingDelegate * apDelegate, const EventOptions & aEventOptions,
414414
EventNumber & aEventNumber)
415415
{
416+
assertChipStackLockedByCurrentThread();
416417
VerifyOrReturnError(mState != EventManagementStates::Shutdown, CHIP_ERROR_INCORRECT_STATE);
417418
return LogEventPrivate(apDelegate, aEventOptions, aEventNumber);
418419
}

0 commit comments

Comments
 (0)