felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgil...@apache.org
Subject svn commit: r1228774 - /felix/trunk/httplite/minimum/src/main/java/org/apache/felix/httplite/osgi/HttpServiceFactoryImpl.java
Date Sun, 08 Jan 2012 03:50:27 GMT
Author: kgilmer
Date: Sun Jan  8 03:50:26 2012
New Revision: 1228774

URL: http://svn.apache.org/viewvc?rev=1228774&view=rev
Log:
httplite: check if thread was interrupted before proceeding with server shutdown optimization.

Modified:
    felix/trunk/httplite/minimum/src/main/java/org/apache/felix/httplite/osgi/HttpServiceFactoryImpl.java

Modified: felix/trunk/httplite/minimum/src/main/java/org/apache/felix/httplite/osgi/HttpServiceFactoryImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/httplite/minimum/src/main/java/org/apache/felix/httplite/osgi/HttpServiceFactoryImpl.java?rev=1228774&r1=1228773&r2=1228774&view=diff
==============================================================================
--- felix/trunk/httplite/minimum/src/main/java/org/apache/felix/httplite/osgi/HttpServiceFactoryImpl.java
(original)
+++ felix/trunk/httplite/minimum/src/main/java/org/apache/felix/httplite/osgi/HttpServiceFactoryImpl.java
Sun Jan  8 03:50:26 2012
@@ -138,7 +138,7 @@ public class HttpServiceFactoryImpl impl
                     {
                         Thread.sleep( 1000 * 30 );
                         
-                        if (m_registrations == null || m_server == null)
+                        if (m_registrations == null || m_server == null || Thread.interrupted())
                         {
                             return;
                         }



Mime
View raw message