mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-22 11:55:15 -04:00
fixes a model sync issue
This commit is contained in:
parent
8bc3175c1e
commit
7aa4ec6136
@ -924,7 +924,7 @@ public class Model implements Iterable<Node>, SyncAccess {
|
||||
return new SyncAccess() {
|
||||
@Override
|
||||
public <A extends Runnable> A modify(A run) {
|
||||
synchronized (this) {
|
||||
synchronized (Model.this) {
|
||||
run.run();
|
||||
}
|
||||
fireEvent(ModelEvent.MICROSTEP); // record the external modification as a micro step!
|
||||
|
Loading…
x
Reference in New Issue
Block a user