corefx - clear mobility player on new connections
This commit is contained in:
parent
8af23ebfd9
commit
1877d864dc
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,10 @@ public class Controller implements Initializable {
|
||||||
private GuiPreferencesDialog guiPreferencesDialog = new GuiPreferencesDialog(this);
|
private GuiPreferencesDialog guiPreferencesDialog = new GuiPreferencesDialog(this);
|
||||||
|
|
||||||
public void connectToCore(String coreUrl) {
|
public void connectToCore(String coreUrl) {
|
||||||
|
// clear out any previously set information
|
||||||
|
bottom.getChildren().remove(mobilityPlayer);
|
||||||
|
mobilityDialog.setNode(null);
|
||||||
|
|
||||||
coreWebSocket.stop();
|
coreWebSocket.stop();
|
||||||
|
|
||||||
ExecutorService executorService = Executors.newSingleThreadExecutor();
|
ExecutorService executorService = Executors.newSingleThreadExecutor();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue