glimmerveen commented on code in PR #486:
URL: https://github.com/apache/felix-dev/pull/486#discussion_r2935161040


##########
scr/src/main/java/org/apache/felix/scr/impl/ComponentRegistry.java:
##########
@@ -718,42 +716,44 @@ public Dictionary<String, Object> 
getServiceRegistrationProperties()
 
     public void setRegistration(final 
ServiceRegistration<ServiceComponentRuntime> reg)
     {
-        this.registration = reg;
+        long delay = m_configuration.serviceChangecountTimeout();
+        m_componentActor.scheduleWithFixedDelay(new 
UpdateChangeCountProperty(reg), delay, delay, TimeUnit.MILLISECONDS);

Review Comment:
   @tjwatson I took the liberty of implementing the suggestion you made on 
cancelling uncompleted tasks when a new needs to be scheduled (#487). Could you 
have a look if that approach provides an improvement?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to