mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 19:16:59 +00:00
fix #2771 by invoking jail.callJail in the same thread
This commit is contained in:
parent
591e568e37
commit
6c3c85b9cc
@ -6,5 +6,5 @@ ERC20_ENABLED=1
|
|||||||
OFFLINE_INBOX_ENABLED=1
|
OFFLINE_INBOX_ENABLED=1
|
||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
LOG_LEVEL_STATUS_GO=info
|
LOG_LEVEL_STATUS_GO=info
|
||||||
JSC_ENABLED=0
|
JSC_ENABLED=1
|
||||||
QUEUE_MESSAGE_ENABLED=1
|
QUEUE_MESSAGE_ENABLED=1
|
||||||
|
@ -532,16 +532,11 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
|
|||||||
callback.invoke(false);
|
callback.invoke(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
executor.execute(new Runnable() {
|
Log.d(TAG, "startCallJail");
|
||||||
@Override
|
String res = jail.callJail(chatId, path, params);
|
||||||
public void run() {
|
Log.d(TAG, "endCallJail");
|
||||||
Log.d(TAG, "startCallJail");
|
callback.invoke(res);
|
||||||
String res = jail.callJail(chatId, path, params);
|
|
||||||
Log.d(TAG, "endCallJail");
|
|
||||||
callback.invoke(res);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReactMethod
|
@ReactMethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user