GUACAMOLE-896: Always flush instruction buffer upon end of static tunnel.
This commit is contained in:
1 parent
50693de217
commit
a096abd735
1 file changed
+2
-2
@@ -442,8 +442,8 @@ Guacamole.SessionRecording = function SessionRecording(source) {
|
||||
tunnel.onstatechange = function tunnelStateChanged(state) {
|
||||
if (state === Guacamole.Tunnel.State.CLOSED) {
|
||||
|
||||
// Append to Blob (creating a new Blob in the process)
|
||||
if (instructionBuffer.length >= BLOCK_SIZE) {
|
||||
// Append any remaining instructions
|
||||
if (instructionBuffer.length) {
|
||||
recordingBlob = new Blob([recordingBlob, instructionBuffer]);
|
||||
instructionBuffer = '';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user