PengZheng commented on a change in pull request #399:
URL: https://github.com/apache/celix/pull/399#discussion_r810497376



##########
File path: libs/framework/src/service_registry.c
##########
@@ -1124,12 +1044,7 @@ celix_status_t 
celix_serviceRegistry_addServiceListener(celix_service_registry_t
         event.reference = ref;
         event.type = OSGI_FRAMEWORK_SERVICE_EVENT_REGISTERED;
         listener->serviceChanged(listener->handle, &event);

Review comment:
       Consider when serviceTracker_invokeAddingService returns error, the 
newly created reference might need to be removed from 
`registry->serviceReferences`.




-- 
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