JETTY-1495 Ensure dynamic servlet addition does not cause servlets to be inited.

This commit is contained in:
Jan Bartel 2012-03-16 15:48:02 +11:00
parent a6eda90594
commit 4b2d976f24
1 changed files with 1 additions and 1 deletions

View File

@ -1224,7 +1224,7 @@ public class ServletHandler extends ScopedHandler
try
{
if (isStarted())
if (_contextHandler!=null && _contextHandler.isStarted() || _contextHandler==null && isStarted())
initialize();
}
catch (Exception e)