shutdown executor on context destroy

This commit is contained in:
Sebastian Sdorra
2019-11-21 16:23:04 +01:00
parent 2fde622560
commit ca8d5956e0

View File

@@ -52,7 +52,7 @@ import javax.servlet.http.HttpServletResponse;
* *
* @author Sebastian Sdorra * @author Sebastian Sdorra
*/ */
public class DefaultCGIExecutorFactory implements CGIExecutorFactory public class DefaultCGIExecutorFactory implements CGIExecutorFactory, AutoCloseable
{ {
/** /**
@@ -92,6 +92,11 @@ public class DefaultCGIExecutorFactory implements CGIExecutorFactory
//~--- fields --------------------------------------------------------------- //~--- fields ---------------------------------------------------------------
@Override
public void close() {
executor.shutdown();
}
/** Field description */ /** Field description */
private final ExecutorService executor; private final ExecutorService executor;
} }