From 2893d4aebded66b7666ef957d1ffbe5001048bd9 Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 26 Nov 2016 13:21:21 +0000 Subject: [PATCH] Silence InterruptedException when the plugin disables --- .../java/me/lucko/luckperms/common/utils/DebugHandler.java | 4 +--- .../java/me/lucko/luckperms/common/utils/PermissionCache.java | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/utils/DebugHandler.java b/common/src/main/java/me/lucko/luckperms/common/utils/DebugHandler.java index 39775b2c1..6b424d578 100644 --- a/common/src/main/java/me/lucko/luckperms/common/utils/DebugHandler.java +++ b/common/src/main/java/me/lucko/luckperms/common/utils/DebugHandler.java @@ -54,9 +54,7 @@ public class DebugHandler { try { Thread.sleep(200); - } catch (InterruptedException e) { - e.printStackTrace(); - } + } catch (InterruptedException ignored) {} } }); } diff --git a/common/src/main/java/me/lucko/luckperms/common/utils/PermissionCache.java b/common/src/main/java/me/lucko/luckperms/common/utils/PermissionCache.java index 18ed806ea..7fe0656ab 100644 --- a/common/src/main/java/me/lucko/luckperms/common/utils/PermissionCache.java +++ b/common/src/main/java/me/lucko/luckperms/common/utils/PermissionCache.java @@ -52,9 +52,7 @@ public class PermissionCache { try { Thread.sleep(5000); - } catch (InterruptedException e) { - e.printStackTrace(); - } + } catch (InterruptedException ignored) {} } }); }