corefx - clear mobility player on new connections

This commit is contained in:
Blake J. Harnden 2018-11-26 09:34:06 -08:00
parent 8af23ebfd9
commit 1877d864dc

View file

@ -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();