Skip to content

Commit a36a1c8

Browse files
motiz88meta-codesync[bot]
authored andcommitted
Add missing mutex lock to NetworkHandler::disable() (#55241)
Summary: Pull Request resolved: #55241 Changelog: [Internal] TSIA Reviewed By: hoxyq Differential Revision: D90998980 fbshipit-source-id: 96c986ac21979d8f560dc5e64e5f2946a83ff938
1 parent ca520ee commit a36a1c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-native/ReactCommon/jsinspector-modern/network/NetworkHandler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ bool NetworkHandler::disable() {
5656
}
5757

5858
enabled_.store(false, std::memory_order_release);
59+
std::lock_guard<std::mutex> lock(requestBodyMutex_);
5960
responseBodyBuffer_.clear();
6061
return true;
6162
}

0 commit comments

Comments
 (0)