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:
Michael Jumper
2013-02-09 18:16:03 -08:00
parent 6413cc7a3a
commit 4e7f62b5ec

View File

@@ -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]