Skip to content

Commit

Permalink
changes from review
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
  • Loading branch information
lachlan-roberts committed Oct 15, 2020
1 parent 2bcffe6 commit e46e1c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public interface Configurator
*/
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public interface Configurator
*/
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(
Expand Down

0 comments on commit e46e1c7

Please sign in to comment.