summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-09 12:25:41 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-14 12:42:26 +0100
commit10b3237e528aac39830fc2f0dcb452a87150bd0a (patch)
tree9744d7cd612b4ab71ba4bd9575f603166b8cb947
parent99af7cc0283e7d7a38aa3a03a415e28b54bcc635 (diff)
downloaduxp-10b3237e528aac39830fc2f0dcb452a87150bd0a.tar.gz
No Issue - add mutex in EventSource
Potentially avoids a gc crash when load is high.
-rw-r--r--dom/base/EventSource.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}