mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-250: Fix backward seeking - must retreat potentially all the way to frame 0 in search of an absolute state.
This commit is contained in:
@@ -205,10 +205,15 @@ Guacamole.SessionRecording = function SessionRecording(tunnel) {
|
|||||||
var startIndex;
|
var startIndex;
|
||||||
|
|
||||||
// Back up until startIndex represents current state
|
// Back up until startIndex represents current state
|
||||||
for (startIndex = index; startIndex > currentFrame; startIndex--) {
|
for (startIndex = index; startIndex >= 0; startIndex--) {
|
||||||
|
|
||||||
var frame = frames[startIndex];
|
var frame = frames[startIndex];
|
||||||
|
|
||||||
|
// If we've reached the current frame, startIndex represents
|
||||||
|
// current state by definition
|
||||||
|
if (startIndex === currentFrame)
|
||||||
|
break;
|
||||||
|
|
||||||
// If frame has associated absolute state, make that frame the
|
// If frame has associated absolute state, make that frame the
|
||||||
// current state
|
// current state
|
||||||
if (frame.clientState) {
|
if (frame.clientState) {
|
||||||
|
Reference in New Issue
Block a user