Skip to content

Commit

Permalink
Fix #5835 Durable Filters, Servlets and Listeners
Browse files Browse the repository at this point in the history
throw ISE for SCL added after init
  • Loading branch information
gregw committed Dec 29, 2020
1 parent b9f0e1b commit ba34eb7
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -707,9 +707,9 @@ public void addEventListener(EventListener listener)
_servletContextListeners.add(scl);
if (_contextStatus == ContextStatus.INITIALIZED)
{
if (isStarting())
scl.contextInitialized(new ServletContextEvent(_scontext));
_destroyServletContextListeners.add(scl);
throw new IllegalStateException("Context is initialized");
// scl.contextInitialized(new ServletContextEvent(_scontext));
// _destroyServletContextListeners.add(scl);
}
}

Expand Down

0 comments on commit ba34eb7

Please sign in to comment.