Fix EXC_BAD_ACCESS within RCTInspectorNetworkReporter (#50952)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/50952

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D73720844

fbshipit-source-id: 5acde68e811782a1a402ad633b56c7bdd9b7ea22
This commit is contained in:
Sanjay Thakur
2025-04-28 04:55:05 -07:00
committed by Facebook GitHub Bot
parent 9345c88a61
commit 7a919d6966
@@ -667,11 +667,11 @@ RCT_EXPORT_MODULE()
}
_tasksByRequestID[task.requestID] = task;
responseSender(@[ task.requestID ]);
[RCTInspectorNetworkReporter reportRequestStart:task.requestID
request:request
encodedDataLength:task.response.expectedContentLength];
}
[RCTInspectorNetworkReporter reportRequestStart:task.requestID
request:request
encodedDataLength:task.response.expectedContentLength];
[task start];
}