mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 21:31:53 +01:00
model.core: respect OSGi lifecycle (#592)
Fixes: https://github.com/openhab/openhab-core/issues/591 Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
This commit is contained in:
parent
32bee0e22c
commit
45858f2dd2
@ -98,9 +98,11 @@ public class FolderObserver extends AbstractWatchService {
|
||||
protected void removeModelParser(ModelParser modelParser) {
|
||||
parsers.remove(modelParser.getExtension());
|
||||
|
||||
if (modelRepo != null) {
|
||||
Set<String> removed = modelRepo.removeAllModelsOfType(modelParser.getExtension());
|
||||
ignoredFiles.addAll(removed.stream().map(name -> nameFileMap.get(name)).collect(Collectors.toSet()));
|
||||
}
|
||||
}
|
||||
|
||||
@Activate
|
||||
public void activate(ComponentContext ctx) {
|
||||
|
Loading…
Reference in New Issue
Block a user