]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling/src/org/simantics/modeling/scl/GraphModuleSourceRepository.java
Still working for multiple readers
[simantics/platform.git] / bundles / org.simantics.modeling / src / org / simantics / modeling / scl / GraphModuleSourceRepository.java
index f3f5b917067a887a992b948a52760a3813b13f6e..9fda66d070400d814429227363804eb8ebe014a3 100644 (file)
@@ -78,7 +78,9 @@ public enum GraphModuleSourceRepository implements ModuleSourceRepository {
                 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);