Add JSON-RPC thread

Printing JSON-RPC responses for now.
This commit is contained in:
link2xt
2023-04-22 20:09:11 +00:00
parent 5246ee77ad
commit 39e9ab817e
@@ -125,6 +125,13 @@ public class ApplicationContext extends MultiDexApplication {
Log.i("DeltaChat", "shutting down event handler");
}, "eventThread").start();
new Thread(() -> {
while (true) {
String response = dcJsonrpcInstance.getNextResponse();
Log.i(TAG, "Got JSON-RPC response: " + response);
}
}, "jsonrpcThread").start();
// set translations before starting I/O to avoid sending untranslated MDNs (issue #2288)
DcHelper.setStockTranslations(this);