commit | 01837fcae6d90368e4f484d16384ac38d6e3ce5a | [log] [tgz] |
---|---|---|
author | Ken Gilmer <kgilmer@apache.org> | Sun Jan 08 03:50:26 2012 +0000 |
committer | Ken Gilmer <kgilmer@apache.org> | Sun Jan 08 03:50:26 2012 +0000 |
tree | e674bc8a72f278b4cf8f6c6edc843ac6385b180c | |
parent | 505009da176fa89c6a2e9b1801ef35210ca76290 [diff] |
httplite: check if thread was interrupted before proceeding with server shutdown optimization. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1228774 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/httplite/minimum/src/main/java/org/apache/felix/httplite/osgi/HttpServiceFactoryImpl.java b/httplite/minimum/src/main/java/org/apache/felix/httplite/osgi/HttpServiceFactoryImpl.java index 295880c..922a8db 100644 --- a/httplite/minimum/src/main/java/org/apache/felix/httplite/osgi/HttpServiceFactoryImpl.java +++ b/httplite/minimum/src/main/java/org/apache/felix/httplite/osgi/HttpServiceFactoryImpl.java
@@ -138,7 +138,7 @@ { Thread.sleep( 1000 * 30 ); - if (m_registrations == null || m_server == null) + if (m_registrations == null || m_server == null || Thread.interrupted()) { return; }