GUAC-1428: Do not call handlers on non-existent streams.
This commit is contained in:
1 parent
8cf4b61720
commit
e6d6c5c56e
1 file changed
+3
-2
@@ -691,7 +691,8 @@ Guacamole.Client = function(tunnel) {
|
|||||||
var stream = streams[stream_index];
|
var stream = streams[stream_index];
|
||||||
|
|
||||||
// Write data
|
// Write data
|
||||||
stream.onblob(data);
|
if (stream && stream.onblob)
|
||||||
|
stream.onblob(data);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -890,7 +891,7 @@ Guacamole.Client = function(tunnel) {
|
|||||||
var stream = streams[stream_index];
|
var stream = streams[stream_index];
|
||||||
|
|
||||||
// Signal end of stream
|
// Signal end of stream
|
||||||
if (stream.onend)
|
if (stream && stream.onend)
|
||||||
stream.onend();
|
stream.onend();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user