diff --git a/src/app/EventManagement.cpp b/src/app/EventManagement.cpp index 7713ba18f3e468..aa3abd67f828d8 100644 --- a/src/app/EventManagement.cpp +++ b/src/app/EventManagement.cpp @@ -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); }