Skip to content
Permalink
Browse files
Merge pull request #37 from rovarga/felix6315
FELIX-6315: do not deactivate factory component configurations
  • Loading branch information
jbonofre committed Sep 16, 2020
2 parents 494ec53 + febfde7 commit 28b8f0e986899db8ea665f9c3d9b7f199c652e97
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1034,7 +1034,8 @@ public void ungetService( final Bundle bundle, final ServiceRegistration<S> serv
// unget the service instance if no bundle is using it
// any longer unless delayed component instances have to
// be kept (FELIX-3039)
if ( m_useCount.decrementAndGet() == 0 && !isImmediate() && !keepInstances() )
if ( m_useCount.decrementAndGet() == 0 && !isImmediate()
&& !getComponentMetadata().isFactory() && !keepInstances() )
{
final State previousState = getState();
deleteComponent( ComponentConstants.DEACTIVATION_REASON_UNSPECIFIED );

0 comments on commit 28b8f0e

Please sign in to comment.