Start matrix sync thread asynchronously.

This commit is contained in:
Kavin 2022-11-15 01:41:15 +00:00
parent f06f23b07f
commit fd6a6b3083
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
1 changed files with 2 additions and 2 deletions

View File

@ -43,11 +43,11 @@ public class Main {
Injector.useSpecializer(); Injector.useSpecializer();
new Thread(new SyncRunner( Multithreading.runAsync(() -> new Thread(new SyncRunner(
new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build(), new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build(),
MATRIX_SERVER, MATRIX_SERVER,
MatrixHelper.MATRIX_TOKEN) MatrixHelper.MATRIX_TOKEN)
).start(); ).start());
new Timer().scheduleAtFixedRate(new TimerTask() { new Timer().scheduleAtFixedRate(new TimerTask() {
@Override @Override