This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch hotfix/start_bundles_incorrect
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 8bd235dae9e5594502fff6b6f00314dc507f6e5e
Author: Pepijn Noltes <[email protected]>
AuthorDate: Tue May 19 08:56:44 2020 +0200

    Fixes an incorrect loop that installed bundles multiple times
---
 libs/framework/src/framework.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libs/framework/src/framework.c b/libs/framework/src/framework.c
index 9ad3c8e..d14f541 100644
--- a/libs/framework/src/framework.c
+++ b/libs/framework/src/framework.c
@@ -599,9 +599,7 @@ static void 
framework_autoStartConfiguredBundles(bundle_context_t *fwCtx) {
             framework_autoInstallConfiguredBundlesForList(fwCtx, autoStart, 
installedBundles);
         }
     }
-    for (int i = 0; i < len; ++i) {
-        framework_autoStartConfiguredBundlesForList(fwCtx, installedBundles);
-    }
+    framework_autoStartConfiguredBundlesForList(fwCtx, installedBundles);
     celix_arrayList_destroy(installedBundles);
 }
 

Reply via email to