2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-12-23 10:38:01 +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);
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();