mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Merge pull request #431 from TeamPiped/async-matrix-start
Start matrix sync thread asynchronously.
This commit is contained in:
commit
498b88334d
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue