celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpe...@apache.org
Subject celix git commit: CELIX-272: remove inValid registration to prevent an infinite loop
Date Wed, 18 Nov 2015 11:07:41 GMT
Repository: celix
Updated Branches:
  refs/heads/develop 57ae9995c -> fed25a758


CELIX-272: remove inValid registration to prevent an infinite loop


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/fed25a75
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/fed25a75
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/fed25a75

Branch: refs/heads/develop
Commit: fed25a7582e010c2ed15ca2b662b58ed5292b957
Parents: 57ae999
Author: Bjoern Petri <bpetri@apache.org>
Authored: Wed Nov 18 11:48:39 2015 +0100
Committer: Bjoern Petri <bpetri@apache.org>
Committed: Wed Nov 18 11:48:39 2015 +0100

----------------------------------------------------------------------
 framework/private/src/service_registry.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/fed25a75/framework/private/src/service_registry.c
----------------------------------------------------------------------
diff --git a/framework/private/src/service_registry.c b/framework/private/src/service_registry.c
index 4155854..1b1c2b1 100644
--- a/framework/private/src/service_registry.c
+++ b/framework/private/src/service_registry.c
@@ -246,6 +246,9 @@ celix_status_t serviceRegistry_clearServiceRegistrations(service_registry_pt
reg
         if (serviceRegistration_isValid(reg)) {
             serviceRegistration_unregister(reg);
         }
+        else {
+            arrayList_remove(registrations, 0);
+        }
     }
 
     return status;


Mime
View raw message