Skip to content

Commit c99206b

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 66447dd commit c99206b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncEventSource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ AsyncEventSourceClient::~AsyncEventSourceClient() {
200200

201201
bool AsyncEventSourceClient::_queueMessage(const char *message, size_t len) {
202202
#ifdef ESP32
203-
// length() is not thread-safe, thus acquiring the lock before this call..
203+
// Protect message queue access (size checks and modifications) which is not thread-safe.
204204
std::lock_guard<std::recursive_mutex> lock(_lockmq);
205205
#endif
206206

0 commit comments

Comments
 (0)