mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-462: Do not continue an outstanding state import if its corresponding seek has been cancelled.
This commit is contained in:
@@ -607,8 +607,14 @@ Guacamole.SessionRecording = function SessionRecording(source) {
|
||||
// current state
|
||||
if (frame.clientState) {
|
||||
frame.clientState.text().then(function textReady(text) {
|
||||
|
||||
// Cancel seek if aborted
|
||||
if (thisSeek.aborted)
|
||||
return;
|
||||
|
||||
playbackClient.importState(JSON.parse(text));
|
||||
currentFrame = index;
|
||||
|
||||
});
|
||||
break;
|
||||
}
|
||||
@@ -629,7 +635,7 @@ Guacamole.SessionRecording = function SessionRecording(source) {
|
||||
return;
|
||||
|
||||
// If frames remain, replay the next frame
|
||||
if (!thisSeek.aborted && currentFrame < index)
|
||||
if (currentFrame < index)
|
||||
replayFrame(currentFrame + 1, continueReplay);
|
||||
|
||||
// Otherwise, the seek operation is completed
|
||||
|
Reference in New Issue
Block a user