Signed-off-by: Kai Kreuzer <kai@openhab.org>
pull/36/head
Kai Kreuzer 2016-04-16 09:20:04 +02:00
parent 4acce34de7
commit 8209e72ba6
1 changed files with 3 additions and 2 deletions

View File

@ -49,17 +49,18 @@ public class FeatureInstaller {
}
protected void modified(final Map<String, Object> config) {
final FeaturesService service = featuresService;
ExecutorService scheduler = Executors.newSingleThreadExecutor();
scheduler.execute(new Runnable() {
@Override
public void run() {
installPackage(featuresService, config);
installPackage(service, config);
// install addons
for (String type : addonTypes) {
Object install = config.get(type);
if (install instanceof String) {
installFeatures(featuresService, type, (String) install);
installFeatures(service, type, (String) install);
}
}
}