You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2014/01/20 14:23:54 UTC

svn commit: r1559686 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java

Author: sergeyb
Date: Mon Jan 20 13:23:53 2014
New Revision: 1559686

URL: http://svn.apache.org/r1559686
Log:
[CXF-5417] Minor optimization

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java?rev=1559686&r1=1559685&r2=1559686&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java (original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java Mon Jan 20 13:23:53 2014
@@ -125,7 +125,7 @@ public class Servlet3ContinuationProvide
             obj = null;
             if (callback != null) {
                 final Exception ex = inMessage.getExchange().get(Exception.class);
-                if (ex != null && isClientDisconnected(ex)) {
+                if (ex instanceof IOException && isClientDisconnected(ex)) {
                     callback.onDisconnect();    
                 }
             }
@@ -174,7 +174,7 @@ public class Servlet3ContinuationProvide
         }
         private boolean isClientDisconnected(Exception ex) {
             String exName = (String)inMessage.getContextualProperty("disconnected.client.exception.class");
-            if (exName != null && ex instanceof IOException) {
+            if (exName != null) {
                 return exName.equals(IOException.class.getName()) || exName.equals(ex.getClass().getName());
             } else {
                 return false;