Before actually leaving the stop() method, makes sure that the background thread running Jetty has actually stopped. Not doing so caused dereferencing of invalid objects (service references, ..).

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@759510 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/http.jetty/src/main/java/org/apache/felix/http/jetty/Activator.java b/http.jetty/src/main/java/org/apache/felix/http/jetty/Activator.java
index 6d14453..91bf091 100644
--- a/http.jetty/src/main/java/org/apache/felix/http/jetty/Activator.java
+++ b/http.jetty/src/main/java/org/apache/felix/http/jetty/Activator.java
@@ -190,6 +190,12 @@
         
         m_running = false;
         m_thread.interrupt();
+        try {
+            m_thread.join(3000);
+        }
+        catch (InterruptedException e) {
+            // not much we can do here
+        }
         
         m_logTracker.close();
     }