FELIX-3890 only try to unbind services we bound, not failed ones

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1444487 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java b/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java
index 5ad25ed..01cc286 100644
--- a/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java
+++ b/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java
@@ -1358,7 +1358,7 @@
         m_componentManager.waitForTracked( trackingCount.get() );
         for ( RefPair<T> boundRef : refPairs )
         {
-            if ( doUnbind )
+            if ( doUnbind && !boundRef.isFailed() )
             {
                 invokeUnbindMethod( componentInstance, boundRef, trackingCount.get() );
             }