diff --git a/java/server/src/org/openqa/grid/web/Hub.java b/java/server/src/org/openqa/grid/web/Hub.java
index <HASH>..<HASH> 100644
--- a/java/server/src/org/openqa/grid/web/Hub.java
+++ b/java/server/src/org/openqa/grid/web/Hub.java
@@ -164,12 +164,12 @@ public class Hub {
 
   public void start() throws Exception {
     initServer();
-    server.start();
     if (maxThread>0){
       QueuedThreadPool pool = new QueuedThreadPool();
       pool.setMaxThreads(maxThread);
       server.setThreadPool(pool);
     }
+    server.start();
   }
 
   public void stop() throws Exception {
Make the jettyMaxThreads parameter actually be effective

Calling server.start() before setting a new thread pool caused the new thread
pool to be ignored. Moved the call to server.start() to after the thread pool
has been configured, which now makes the server use the newly configured thread
pool instead of the default one.

Fixes "Selenium grid Jetty server thread count cannot be configured by
parameter jettyMaxThreads":

	<URL>