mirror of
https://github.com/corda/corda.git
synced 2025-04-11 13:21:26 +00:00
ENT-1902: If we are already in the JavaFX thread - perform direct invocation without postponing it. (#3177)
Or else if we are operating in JavaFX thread the sequence of invocations will change.
This commit is contained in:
parent
ae5bacb4b4
commit
215e54f1ab
@ -70,7 +70,8 @@ class NodeMonitorModel {
|
||||
|
||||
// Only execute using "runLater()" if JavaFX been initialized.
|
||||
// It may not be initialized in the unit test.
|
||||
if(initialized.value.get()) {
|
||||
// Also if we are already in the JavaFX thread - perform direct invocation without postponing it.
|
||||
if(initialized.value.get() && !Platform.isFxApplicationThread()) {
|
||||
Platform.runLater(op)
|
||||
} else {
|
||||
op()
|
||||
|
Loading…
x
Reference in New Issue
Block a user