You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2012/12/03 15:06:11 UTC

svn commit: r1416527 - /sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverFactoryActivator.java

Author: cziegeler
Date: Mon Dec  3 14:06:10 2012
New Revision: 1416527

URL: http://svn.apache.org/viewvc?rev=1416527&view=rev
Log:
SLING-2691 :  Correctly update mapping if a jcr:content node is removed 

Modified:
    sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverFactoryActivator.java

Modified: sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverFactoryActivator.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverFactoryActivator.java?rev=1416527&r1=1416526&r2=1416527&view=diff
==============================================================================
--- sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverFactoryActivator.java (original)
+++ sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverFactoryActivator.java Mon Dec  3 14:06:10 2012
@@ -292,7 +292,9 @@ public class ResourceResolverFactoryActi
         this.rootProviderEntry.setEventAdmin(null);
         this.resourceDecoratorTracker.close();
 
-        this.unregisterFactory();
+        synchronized ( this ) {
+            this.unregisterFactory();
+        }
     }
 
     private void unregisterFactory() {