SCLContext context = SCLContext.getCurrent();
Object oldGraph = context.put("graph", graph);
try {
- listener.notifyAboutUpdate();
+ synchronized(GraphModuleSourceRepository.class) {
+ listener.notifyAboutUpdate();
+ }
} finally {
listener = null;
context.put("graph", oldGraph);