mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1428: Do not call handlers on non-existent streams.
This commit is contained in:
@@ -691,6 +691,7 @@ Guacamole.Client = function(tunnel) {
|
||||
var stream = streams[stream_index];
|
||||
|
||||
// Write data
|
||||
if (stream && stream.onblob)
|
||||
stream.onblob(data);
|
||||
|
||||
},
|
||||
@@ -890,7 +891,7 @@ Guacamole.Client = function(tunnel) {
|
||||
var stream = streams[stream_index];
|
||||
|
||||
// Signal end of stream
|
||||
if (stream.onend)
|
||||
if (stream && stream.onend)
|
||||
stream.onend();
|
||||
|
||||
},
|
||||
|
Reference in New Issue
Block a user