changes from review

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-10-15 16:36:04 +11:00 committed by Joakim Erdfelt
parent dc74bcf4cc
commit 7ed6998a9c
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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(