381399 Unable to stop a jetty instance that has not finished starting

This commit is contained in:
Jan Bartel 2012-06-01 19:59:55 +02:00
parent 18141b68a3
commit 8bcb906883
1 changed files with 5 additions and 2 deletions

View File

@ -121,8 +121,11 @@ public class ShutdownThread extends Thread
{
try
{
lifeCycle.stop();
LOG.debug("Stopped {}",lifeCycle);
if (lifeCycle.isStarted())
{
lifeCycle.stop();
LOG.debug("Stopped {}",lifeCycle);
}
}
catch (Exception ex)
{