Only connect if we don't have an rfb object

Each connection creates a new RFB object. Fixes #978.
This commit is contained in:
Samuel Mannehed 2017-12-14 12:16:45 +01:00
parent 75e1161434
commit a4822c3a86
1 changed files with 6 additions and 0 deletions

View File

@ -989,6 +989,12 @@ var UI = {
},
connect: function(event, password) {
// Ignore when rfb already exists
if (typeof UI.rfb !== 'undefined') {
return;
}
var host = UI.getSetting('host');
var port = UI.getSetting('port');
var path = UI.getSetting('path');