Module Client, clss FrameManager : ajout d'un synchronized pour éviter les accès concurentiels

This commit is contained in:
Notmoo-PC\Notmoo committed 2017-11-03 18:27:37 +01:00
1 parent 563154eb30
commit c6de9e87a8
1 file changed
+1 -1
@@ -57,7 +57,7 @@ public class FrameManager {
return () -> Platform.runLater(()->trySwitchScene(stage, startupFrameScene, false));
}
private void trySwitchScene(Stage stage, FrameScene sceneToDisplay, boolean maximize){
private synchronized void trySwitchScene(Stage stage, FrameScene sceneToDisplay, boolean maximize){
if(sceneToDisplay!=null) {
stage.hide();
stage.setScene(sceneToDisplay);