From b41311f1ed9567cfe0201571ae8cb96ba2414b99 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 15 Jul 2017 16:16:26 -0700 Subject: [PATCH] GUACAMOLE-346: Simplify style of seek callback invocation. --- .../src/main/webapp/modules/SessionRecording.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/guacamole-common-js/src/main/webapp/modules/SessionRecording.js b/guacamole-common-js/src/main/webapp/modules/SessionRecording.js index d54498288..6b74782cb 100644 --- a/guacamole-common-js/src/main/webapp/modules/SessionRecording.js +++ b/guacamole-common-js/src/main/webapp/modules/SessionRecording.js @@ -384,13 +384,10 @@ Guacamole.SessionRecording = function SessionRecording(tunnel) { if (currentFrame !== index) seekToFrame(index, callback); - else { - - // Notify that the requested seek has completed + // Notify that the requested seek has completed + else callback(); - } - }, 0); };