From 4448c8dd3c5b86c359e79da2db92184169c39da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?To=CF=80?= Date: Sun, 26 Nov 2023 22:17:22 +0100 Subject: [PATCH] use loadItemSync instead of loadItem in player rest handler --- .../src/main/java/lavalink/server/player/PlayerRestHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LavalinkServer/src/main/java/lavalink/server/player/PlayerRestHandler.kt b/LavalinkServer/src/main/java/lavalink/server/player/PlayerRestHandler.kt index 1ae1bbffc..2b7dd23a6 100644 --- a/LavalinkServer/src/main/java/lavalink/server/player/PlayerRestHandler.kt +++ b/LavalinkServer/src/main/java/lavalink/server/player/PlayerRestHandler.kt @@ -177,7 +177,7 @@ class PlayerRestHandler( } } else { val trackFuture = CompletableFuture() - context.audioPlayerManager.loadItem( + context.audioPlayerManager.loadItemSync( (identifier as Omissible.Present).value, object : AudioLoadResultHandler { override fun trackLoaded(track: AudioTrack) {