FELIX-2671 (OSGi Bug 97) On timeout the Coordination is immediately
terminated without interrupting the Coordination thread and waiting
for it to terminate nicely.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1025761 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/coordinator/src/main/java/org/apache/felix/coordination/impl/CoordinationImpl.java b/coordinator/src/main/java/org/apache/felix/coordination/impl/CoordinationImpl.java
index 5ecef55..21dc959 100644
--- a/coordinator/src/main/java/org/apache/felix/coordination/impl/CoordinationImpl.java
+++ b/coordinator/src/main/java/org/apache/felix/coordination/impl/CoordinationImpl.java
@@ -113,19 +113,7 @@
// If a timeout happens, the coordination thread is set to always fail
this.mustFail = TIMEOUT;
- // and interrupted and a small delay happens to allow the initiator to
- // clean up by reacting on the interrupt. If the initiator can do this
- // clean up normally, the end() method will return TIMEOUT.
- try {
- initiatorThread.interrupt();
- Thread.sleep(500); // half a second for now
- } catch (SecurityException se) {
- // thrown by interrupt -- no need to wait if interrupt fails
- } catch (InterruptedException ie) {
- // someone interrupted us while delaying, just continue
- }
-
- // After this delay the coordination is forcefully failed.
+ // Faile the Coordination upon timeout
CoordinationImpl.this.fail(null);
}