diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-09 12:25:41 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-09 12:25:41 +0100 |
commit | e4643f5bed2cdc600fc29900fe3b4d22e25763bc (patch) | |
tree | acbacb24b1b36b3be584be0c54c465df91d5df6d /dom | |
parent | 2637007c7835748367132c4e90b14831519454d0 (diff) | |
download | uxp-e4643f5bed2cdc600fc29900fe3b4d22e25763bc.tar.gz |
No Issue - add mutex in EventSource
Potentially avoids a gc crash when load is high.
Diffstat (limited to 'dom')
-rw-r--r-- | dom/base/EventSource.cpp | 1 |
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; } |