diff --git a/app/ui_screen.js b/app/ui_screen.js index 85d24f07..d66a9416 100644 --- a/app/ui_screen.js +++ b/app/ui_screen.js @@ -220,7 +220,9 @@ const UI = { }, disconnect() { - + if (UI.rfb) { + UI.rfb.disconnect(); + } }, connectFinished(e) { diff --git a/core/display.js b/core/display.js index 269ccca2..6b690b86 100644 --- a/core/display.js +++ b/core/display.js @@ -418,9 +418,10 @@ export default class Display { } removeScreen(screenID) { - if (this.isPrimaryDisplay) { + if (this._isPrimaryDisplay) { for (let i=1; i