Ignore IllegalStateException on unregister
The ConfigAdmin impl bundle may have been stopped on another thread
which would have auto unregistered this service registration.  Just
catch and ignore the exception and continue with the cleanup.
@@ -137,8 +137,15 @@ public abstract class RegionConfigurationSupport
public boolean dereference()
{
if ( referenceCount.decrementAndGet() == 0 )
+ {
+ try
{
this.m_registration.unregister();
+ }
+ catch (IllegalStateException e)
+ {
+ // ignore; just trying to clean up
+ }
this.m_registration = null;
return true;
}
