From 1877d864dc5fe80cf5ce19b427ddaf3c9ddcfaf2 Mon Sep 17 00:00:00 2001 From: "Blake J. Harnden" Date: Mon, 26 Nov 2018 09:34:06 -0800 Subject: [PATCH] corefx - clear mobility player on new connections --- corefx/src/main/java/com/core/Controller.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/corefx/src/main/java/com/core/Controller.java b/corefx/src/main/java/com/core/Controller.java index d42933b8..a512cc4b 100644 --- a/corefx/src/main/java/com/core/Controller.java +++ b/corefx/src/main/java/com/core/Controller.java @@ -80,6 +80,10 @@ public class Controller implements Initializable { private GuiPreferencesDialog guiPreferencesDialog = new GuiPreferencesDialog(this); public void connectToCore(String coreUrl) { + // clear out any previously set information + bottom.getChildren().remove(mobilityPlayer); + mobilityDialog.setNode(null); + coreWebSocket.stop(); ExecutorService executorService = Executors.newSingleThreadExecutor();