download track synchronously

This commit is contained in:
aliveoutside
2022-10-13 03:17:17 +03:00
parent 1aedacf401
commit 4c5a1c5a17
@@ -96,6 +96,7 @@ public class M3UDownloader implements ITrackDownloader {
}));
}
var future = CompletableFuture.allOf(futures.toArray(new CompletableFuture[0]));
future.join();
future.exceptionally(throwable -> {
callback.onFailure();
return null;