Skip to content

Commit 071f7d3

Browse files
committed
GH-577 Ensure listeners are notified after dispatch
Resolves #577
1 parent 54659f0 commit 071f7d3

File tree

1 file changed

+1
-1
lines changed
  • aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet

1 file changed

+1
-1
lines changed

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsAsyncContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public void dispatch() {
7474
throw new IllegalStateException("Dispatching already started");
7575
}
7676
dispatched.set(true);
77-
notifyListeners(NotificationType.START_ASYNC, null);
7877
handler.doFilter(req, res, ((AwsServletContext)req.getServletContext()).getServletForPath(req.getRequestURI()));
78+
notifyListeners(NotificationType.START_ASYNC, null);
7979
} catch (ServletException | IOException e) {
8080
notifyListeners(NotificationType.ERROR, e);
8181
}

0 commit comments

Comments
 (0)