Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,12 @@ void NetworkReporter::reportResponseEnd(

void NetworkReporter::reportRequestFailed(
const std::string& requestId,
bool cancelled) const {
bool cancelled) {
{
std::lock_guard<std::mutex> lock(perfTimingsMutex_);
perfTimingsBuffer_.erase(requestId);
}

#ifdef REACT_NATIVE_DEBUGGER_ENABLED
// Debugger enabled: CDP event handling
jsinspector_modern::NetworkHandler::getInstance().onLoadingFailed(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class NetworkReporter {
*
* Corresponds to `Network.loadingFailed` in CDP.
*/
void reportRequestFailed(const std::string &requestId, bool cancelled) const;
void reportRequestFailed(const std::string &requestId, bool cancelled);

/**
* Report that a WebSocket connection is about to be created.
Expand Down
Loading