Signed-off-by: Kai Kreuzer <kai@openhab.org>pull/36/head
parent
4acce34de7
commit
8209e72ba6
|
@ -49,17 +49,18 @@ public class FeatureInstaller {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void modified(final Map<String, Object> config) {
|
protected void modified(final Map<String, Object> config) {
|
||||||
|
final FeaturesService service = featuresService;
|
||||||
ExecutorService scheduler = Executors.newSingleThreadExecutor();
|
ExecutorService scheduler = Executors.newSingleThreadExecutor();
|
||||||
scheduler.execute(new Runnable() {
|
scheduler.execute(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
installPackage(featuresService, config);
|
installPackage(service, config);
|
||||||
|
|
||||||
// install addons
|
// install addons
|
||||||
for (String type : addonTypes) {
|
for (String type : addonTypes) {
|
||||||
Object install = config.get(type);
|
Object install = config.get(type);
|
||||||
if (install instanceof String) {
|
if (install instanceof String) {
|
||||||
installFeatures(featuresService, type, (String) install);
|
installFeatures(service, type, (String) install);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue