mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 12:59:30 +00:00
simplify
Signed-off-by: Juha Paananen <juha.paananen@gmail.com>
This commit is contained in:
parent
ccb62f5137
commit
59625b1332
@ -689,13 +689,7 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
|
||||
@ManagedAttribute("true for graceful shutdown, which allows existing requests to complete")
|
||||
public boolean isShutdown()
|
||||
{
|
||||
switch(_availability)
|
||||
{
|
||||
case SHUTDOWN:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return _availability == Availability.SHUTDOWN;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user