mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +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
|
// Ensure connection is added
|
||||||
if (!connection) {
|
if (!connection) {
|
||||||
|
|
||||||
|
// If connection not actually defined, storage must be being
|
||||||
|
// modified externally. Stop early.
|
||||||
|
if (!GuacamoleRootUI.connections[id]) return;
|
||||||
|
|
||||||
// Create new connection
|
// Create new connection
|
||||||
connection = new GuacUI.Connection(
|
connection = new GuacUI.Connection(
|
||||||
GuacamoleRootUI.connections[id]
|
GuacamoleRootUI.connections[id]
|
||||||
|
Reference in New Issue
Block a user