mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-896: Always flush instruction buffer upon end of static tunnel.
This commit is contained in:
@@ -442,8 +442,8 @@ Guacamole.SessionRecording = function SessionRecording(source) {
|
|||||||
tunnel.onstatechange = function tunnelStateChanged(state) {
|
tunnel.onstatechange = function tunnelStateChanged(state) {
|
||||||
if (state === Guacamole.Tunnel.State.CLOSED) {
|
if (state === Guacamole.Tunnel.State.CLOSED) {
|
||||||
|
|
||||||
// Append to Blob (creating a new Blob in the process)
|
// Append any remaining instructions
|
||||||
if (instructionBuffer.length >= BLOCK_SIZE) {
|
if (instructionBuffer.length) {
|
||||||
recordingBlob = new Blob([recordingBlob, instructionBuffer]);
|
recordingBlob = new Blob([recordingBlob, instructionBuffer]);
|
||||||
instructionBuffer = '';
|
instructionBuffer = '';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user