mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
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:
@@ -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