Skip to content

Commit

Permalink
Atmosphere#2073 AtmosphereInterceptor.postInspect() is not called in …
Browse files Browse the repository at this point in the history
…case of a handler thrown exception

(cherry picked from commit 3133c59)
  • Loading branch information
reda-alaoui committed Jan 11, 2016
1 parent eec4b5b commit 06aae80
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ Action action(AtmosphereRequest req, AtmosphereResponse res) throws IOException,

// handler interceptor lists
LinkedList<AtmosphereInterceptor> 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);
Expand Down

0 comments on commit 06aae80

Please sign in to comment.