Fix synchronization issue
@@ -131,6 +131,7 @@ public final class HttpServiceRuntimeImpl implements HttpServiceRuntime
{
if ( reg != null )
{
+ boolean setProps = false;
final long count;
synchronized ( this )
{
@@ -141,10 +142,9 @@ public final class HttpServiceRuntimeImpl implements HttpServiceRuntime
{
this.timer = new Timer();
}
- }
if ( this.updateChangeCountDelay == 0L )
{
- reg.setProperties(getAttributes());
+ setProps = true;
}
else
{
@@ -174,5 +174,9 @@ public final class HttpServiceRuntimeImpl implements HttpServiceRuntime
}, this.updateChangeCountDelay);
}
}
+ if ( setProps ) {
+ reg.setProperties(getAttributes());
+ }
+ }
}
}
