Fix type error occurring when multiple guacamole instance are touching the same history simultaneously, and one lacks a connection available in another.
This commit is contained in:
1 parent
6413cc7a3a
commit
4e7f62b5ec
1 file changed
+4
@@ -184,6 +184,10 @@ GuacamoleHistory.onchange = function(id, old_entry, new_entry) {
|
||||
// Ensure connection is added
|
||||
if (!connection) {
|
||||
|
||||
// If connection not actually defined, storage must be being
|
||||
// modified externally. Stop early.
|
||||
if (!GuacamoleRootUI.connections[id]) return;
|
||||
|
||||
// Create new connection
|
||||
connection = new GuacUI.Connection(
|
||||
GuacamoleRootUI.connections[id]
|
||||
|
||||
Reference in new issue
Block a user