changes from review
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
dc74bcf4cc
commit
7ed6998a9c
|
@ -99,7 +99,7 @@ public class JavaxWebSocketServletContainerInitializer implements ServletContain
|
|||
*/
|
||||
public static void configure(ServletContextHandler context, Configurator configurator)
|
||||
{
|
||||
if (context.isStarted())
|
||||
if (!context.isStopped())
|
||||
throw new IllegalStateException("configure should be called before starting");
|
||||
|
||||
// In this embedded-jetty usage, allow ServletContext.addListener() to
|
||||
|
|
|
@ -53,7 +53,7 @@ public class JettyWebSocketServletContainerInitializer implements ServletContain
|
|||
*/
|
||||
public static void configure(ServletContextHandler context, Configurator configurator)
|
||||
{
|
||||
if (context.isStarted())
|
||||
if (!context.isStopped())
|
||||
throw new IllegalStateException("configure should be called before starting");
|
||||
|
||||
context.addEventListener(
|
||||
|
|
Loading…
Reference in New Issue