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
1 changed files with 3 additions and 2 deletions

View File

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