mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-25 19:55:48 +01:00
Merge pull request #36 from kaikreuzer/feat
fixes https://github.com/openhab/openhab-distro/issues/176
This commit is contained in:
commit
be3a691e39
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user