changeset 867:4f5547d29192

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 02 Oct 2016 21:06:18 -0600
parents f8c7b718f513
children 688b875e18ba
files src/org/eclipse/jetty/server/Server.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Server.java	Sun Oct 02 20:47:02 2016 -0600
+++ b/src/org/eclipse/jetty/server/Server.java	Sun Oct 02 21:06:18 2016 -0600
@@ -85,7 +85,6 @@
 		setConnectors(new Connector[]{connector});
 
 		_threadPool = new ThreadPoolExecutor(256, 256, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
-		addBean(_threadPool);
 	}
 
 
@@ -284,6 +283,8 @@
 				try{_connectors[i].stop();}catch(Throwable e){mex.add(e);}
 		}
 
+		_threadPool.shutdownNow();
+
 		try {super.doStop(); } catch(Throwable e) { mex.add(e);}
 
 		mex.ifExceptionThrow();