mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Add JSON-RPC thread
Printing JSON-RPC responses for now.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user