handle pending simulation thread events before simulation starts, just
after loading
This commit is contained in:
parent
0b86a784ee
commit
87adbcb3d5
1 changed files with 6 additions and 0 deletions
|
@ -685,6 +685,12 @@ public class Simulation extends Observable implements Runnable {
|
||||||
|
|
||||||
setChanged();
|
setChanged();
|
||||||
notifyObservers(this);
|
notifyObservers(this);
|
||||||
|
|
||||||
|
/* Execute simulation thread events now, before simulation starts */
|
||||||
|
while (hasPollRequests) {
|
||||||
|
popSimulationInvokes().run();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue