mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
shutdown executor on context destroy
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user