mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 16:30:29 +05:30
Start matrix sync thread asynchronously.
This commit is contained in:
parent
f06f23b07f
commit
fd6a6b3083
@ -43,11 +43,11 @@ public class Main {
|
||||
|
||||
Injector.useSpecializer();
|
||||
|
||||
new Thread(new SyncRunner(
|
||||
Multithreading.runAsync(() -> new Thread(new SyncRunner(
|
||||
new OkHttpClient.Builder().readTimeout(60, TimeUnit.SECONDS).build(),
|
||||
MATRIX_SERVER,
|
||||
MatrixHelper.MATRIX_TOKEN)
|
||||
).start();
|
||||
).start());
|
||||
|
||||
new Timer().scheduleAtFixedRate(new TimerTask() {
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user