Skip to content

Commit ad4a6ca

Browse files
motiz88facebook-github-bot
authored andcommitted
Add missing mutex lock to NetworkHandler::disable() (facebook#55241)
Summary: TSIA Reviewed By: hoxyq Differential Revision: D90998980
1 parent 75af0e4 commit ad4a6ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)