mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUAC-1452: Input streams must be invalidated when closed.
This commit is contained in:
@@ -899,13 +899,20 @@ Guacamole.Client = function(tunnel) {
|
|||||||
|
|
||||||
"end": function(parameters) {
|
"end": function(parameters) {
|
||||||
|
|
||||||
// Get stream
|
|
||||||
var stream_index = parseInt(parameters[0]);
|
var stream_index = parseInt(parameters[0]);
|
||||||
var stream = streams[stream_index];
|
|
||||||
|
|
||||||
// Signal end of stream
|
// Get stream
|
||||||
if (stream && stream.onend)
|
var stream = streams[stream_index];
|
||||||
stream.onend();
|
if (stream) {
|
||||||
|
|
||||||
|
// Signal end of stream if handler defined
|
||||||
|
if (stream.onend)
|
||||||
|
stream.onend();
|
||||||
|
|
||||||
|
// Invalidate stream
|
||||||
|
delete streams[stream_index];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user