From fafbef6be72c12822fd05e2e9af7b5a5e4067f99 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Mon, 9 Oct 2017 09:05:09 +0200 Subject: [PATCH] Prevent another deadlock in LuckPermsHandler #1350 --- .../xephi/authme/permission/handlers/LuckPermsHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/permission/handlers/LuckPermsHandler.java b/src/main/java/fr/xephi/authme/permission/handlers/LuckPermsHandler.java index 25a8b8dc5..63e862524 100644 --- a/src/main/java/fr/xephi/authme/permission/handlers/LuckPermsHandler.java +++ b/src/main/java/fr/xephi/authme/permission/handlers/LuckPermsHandler.java @@ -49,7 +49,12 @@ public class LuckPermsHandler implements PermissionHandler { return getUser(player); } - UUID uuid = luckPermsApi.getStorage().getUUID(playerName).join(); + UUID uuid = null; + try { + uuid = luckPermsApi.getStorage().getUUID(playerName).get(1, TimeUnit.SECONDS); + } catch (InterruptedException | ExecutionException | TimeoutException e) { + e.printStackTrace(); + } if (uuid == null) { return null; }