2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-22 20:28:00 +00:00

don't display exception when can't replace the executor service

This commit is contained in:
mohammed jasem alaajel 2021-07-31 17:07:42 +04:00
parent 785b23ecfb
commit 9b4a49f66a

View File

@ -239,8 +239,9 @@ public final class RedisBungee extends Plugin {
ExecutorService builtinService = (ExecutorService) field.get(this); ExecutorService builtinService = (ExecutorService) field.get(this);
field.set(this, service); field.set(this, service);
builtinService.shutdownNow(); builtinService.shutdownNow();
} catch (Exception e) { } catch (IllegalAccessException | NoSuchFieldException e) {
getLogger().log(Level.WARNING, "Can't replace BungeeCord thread pool with our own", e); getLogger().log(Level.WARNING, "Can't replace BungeeCord thread pool with our own");
getLogger().log(Level.INFO, "skipping replacement.....");
} }
try { try {
loadConfig(); loadConfig();