You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hu...@apache.org on 2018/05/12 12:36:13 UTC

[incubator-dubbo] branch master updated: Remove unecessary cast.

This is an automated email from the ASF dual-hosted git repository.

huxing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new a3b5d25  Remove unecessary cast.
a3b5d25 is described below

commit a3b5d25d5ccdf9f94be108f2410161d93ed718e5
Author: Huxing Zhang <hu...@gmail.com>
AuthorDate: Sat May 12 20:35:49 2018 +0800

    Remove unecessary cast.
---
 .../dubbo/remoting/transport/dispatcher/WrappedChannelHandler.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dubbo-remoting/dubbo-remoting-api/src/main/java/com/alibaba/dubbo/remoting/transport/dispatcher/WrappedChannelHandler.java b/dubbo-remoting/dubbo-remoting-api/src/main/java/com/alibaba/dubbo/remoting/transport/dispatcher/WrappedChannelHandler.java
index fea2d6a..42ed71c 100644
--- a/dubbo-remoting/dubbo-remoting-api/src/main/java/com/alibaba/dubbo/remoting/transport/dispatcher/WrappedChannelHandler.java
+++ b/dubbo-remoting/dubbo-remoting-api/src/main/java/com/alibaba/dubbo/remoting/transport/dispatcher/WrappedChannelHandler.java
@@ -59,8 +59,8 @@ public class WrappedChannelHandler implements ChannelHandlerDelegate {
 
     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);

-- 
To stop receiving notification emails like this one, please contact
huxing@apache.org.