Skip to content

Commit

Permalink
don't display exception when can't replace the executor service
Browse files Browse the repository at this point in the history
  • Loading branch information
ham1255 committed Jul 31, 2021
1 parent 785b23e commit 9b4a49f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,9 @@ public void onEnable() {
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();
Expand Down

0 comments on commit 9b4a49f

Please sign in to comment.