fix #2771 by invoking jail.callJail in the same thread

This commit is contained in:
Roman Volosovskyi 2018-01-05 17:03:10 +02:00
parent 591e568e37
commit 6c3c85b9cc
No known key found for this signature in database
GPG Key ID: 37135489EAE4B2D7
2 changed files with 6 additions and 11 deletions

View File

@ -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

View File

@ -533,16 +533,11 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
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);
}
});
}
@ReactMethod
public void setAdjustResize() {