Skip to content

Commit

Permalink
Remove unecessary cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf0131 committed May 12, 2018
1 parent 3516df5 commit a3b5d25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public WrappedChannelHandler(ChannelHandler handler, URL url) {

public void close() {
try {
if (executor instanceof ExecutorService) {
((ExecutorService) executor).shutdown();
if (executor != null) {
executor.shutdown();
}
} catch (Throwable t) {
logger.warn("fail to destroy thread pool of server: " + t.getMessage(), t);
Expand Down

0 comments on commit a3b5d25

Please sign in to comment.