cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1559686 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java
Date Mon, 20 Jan 2014 13:23:54 GMT
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;



Mime
View raw message