From 3133c596eb0797d1e144189f9d4947643c9b3662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9da=20Housni=20Alaoui?= Date: Mon, 11 Jan 2016 15:41:52 +0100 Subject: [PATCH] #2073 AtmosphereInterceptor.postInspect() is not called in case of a handler thrown exception --- .../java/org/atmosphere/cpr/AsynchronousProcessor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java b/modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java index f60f9c53600..a1370b139e1 100755 --- a/modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java +++ b/modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java @@ -196,12 +196,12 @@ Action action(AtmosphereRequest req, AtmosphereResponse res) throws IOException, // handler interceptor lists LinkedList invokedInterceptors = handlerWrapper.interceptors; - Action a = invokeInterceptors(invokedInterceptors, resource, tracing); - if (a.type() != Action.TYPE.CONTINUE && a.type() != Action.TYPE.SKIP_ATMOSPHEREHANDLER) { - return a; - } try { + Action a = invokeInterceptors(invokedInterceptors, resource, tracing); + if (a.type() != Action.TYPE.CONTINUE && a.type() != Action.TYPE.SKIP_ATMOSPHEREHANDLER) { + return a; + } // Remap occured. if (req.getAttribute(FrameworkConfig.NEW_MAPPING) != null) { req.removeAttribute(FrameworkConfig.NEW_MAPPING);