git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@938363
13f79535-47bb-0310-9956-
ffa450edef68
match = true;
}
- if (t instanceof HttpSessionListener) {
- context.addApplicationLifecycleListener(t);
- match = true;
- }
-
- if (t instanceof ServletContextListener) {
- // TODO SERVLET3 - also need to check caller? spec isn't clear
+ if (t instanceof HttpSessionListener
+ || t instanceof ServletContextListener) {
+ // TODO SERVLET3 - if ServletContextListener then also need to check caller? spec isn't clear
context.addApplicationLifecycleListener(t);
match = true;
}