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
|
||||
LOG_LEVEL=debug
|
||||
LOG_LEVEL_STATUS_GO=info
|
||||
JSC_ENABLED=0
|
||||
JSC_ENABLED=1
|
||||
QUEUE_MESSAGE_ENABLED=1
|
||||
|
|
|
@ -532,16 +532,11 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
|
|||
callback.invoke(false);
|
||||
return;
|
||||
}
|
||||
|
||||
executor.execute(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Log.d(TAG, "startCallJail");
|
||||
String res = jail.callJail(chatId, path, params);
|
||||
Log.d(TAG, "endCallJail");
|
||||
callback.invoke(res);
|
||||
}
|
||||
});
|
||||
|
||||
Log.d(TAG, "startCallJail");
|
||||
String res = jail.callJail(chatId, path, params);
|
||||
Log.d(TAG, "endCallJail");
|
||||
callback.invoke(res);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
|
|
Loading…
Reference in New Issue