summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-09 12:25:41 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-09 12:25:41 +0100
commite4643f5bed2cdc600fc29900fe3b4d22e25763bc (patch)
treeacbacb24b1b36b3be584be0c54c465df91d5df6d
parent2637007c7835748367132c4e90b14831519454d0 (diff)
downloaduxp-e4643f5bed2cdc600fc29900fe3b4d22e25763bc.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;
}