Skip to content

Commit afd9757

Browse files
committed
[OSGi] Fix to always start bundles on first install
1 parent ba6ec3f commit afd9757

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sensorhub-core-osgi/src/main/java/org/sensorhub/impl/osgi/SensorHubOsgi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ public boolean accept(File dir, String name) {
120120
});
121121
for (var f: bundleJarFiles) {
122122
System.out.println("Installing bundle " + f);
123-
systemCtx.installBundle(REF_PREFIX + f.toPath().toString());
123+
var bundle = systemCtx.installBundle(REF_PREFIX + f.toPath().toString());
124+
bundle.start();
124125
}
125126

126127
// start all installed bundles

0 commit comments

Comments
 (0)