mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix access to observers outside lock in ImageResponseObserverCoordinator (#52346)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52346 This is bypassing the mutex, and potentially not thread-safe. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D77541041 fbshipit-source-id: f97415d066786864806836768dbce2d5e68487ef
This commit is contained in:
committed by
Facebook GitHub Bot
parent
69a55d7b76
commit
69e4252ccb
+1
-1
@@ -95,7 +95,7 @@ void ImageResponseObserverCoordinator::nativeImageResponseComplete(
|
||||
auto observers = observers_;
|
||||
mutex_.unlock();
|
||||
|
||||
for (auto observer : observers_) {
|
||||
for (auto observer : observers) {
|
||||
observer->didReceiveImage(imageResponse);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user