From 10b3237e528aac39830fc2f0dcb452a87150bd0a Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 9 Nov 2023 12:25:41 +0100 Subject: No Issue - add mutex in EventSource Potentially avoids a gc crash when load is high. --- dom/base/EventSource.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/base/EventSource.cpp b/dom/base/EventSource.cpp index 06cabc3098..32329098e2 100644 --- a/dom/base/EventSource.cpp +++ b/dom/base/EventSource.cpp @@ -190,6 +190,7 @@ public: bool IsClosed() { + MutexAutoLock lock(mMutex); return ReadyState() == CLOSED; } -- cgit v1.2.3