mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
Handle invalidation error in RCTObjcExecutor
Differential Revision: D6748200 fbshipit-source-id: eb98782c2ba080273c1f027846984f5f4caddf26
This commit is contained in:
parent
65184ec6b0
commit
493f3e8da5
@ -45,7 +45,10 @@ public:
|
||||
{
|
||||
m_jsCallback = ^(id json, NSError *error) {
|
||||
if (error) {
|
||||
m_errorBlock(error);
|
||||
// Do not use "m_errorBlock" here as the bridge might be in the middle
|
||||
// of invalidation as a result of error handling and "this" can be
|
||||
// already deallocated.
|
||||
errorBlock(error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user