From cccf3b008abbb68abcbbda159f7b111f163788a3 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Sun, 29 Jul 2018 19:14:56 -0400 Subject: [PATCH] Fix perf/playback tool Somewhere along the way, the refactors broke playback.js. This fixes the actual functionality, and makes its JS loading match that in vnc.html. --- tests/playback.js | 4 ++-- tests/vnc_playback.html | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/tests/playback.js b/tests/playback.js index c48a2a4e..faa1a3f5 100644 --- a/tests/playback.js +++ b/tests/playback.js @@ -89,18 +89,18 @@ export default class RecordingPlayer { this._trafficManagement = (trafficManagement === undefined) ? !realtime : trafficManagement; this._running = true; - - this._queueNextPacket(); } // _enablePlaybackMode mocks out things not required for running playback _enablePlaybackMode() { + const self = this; this._rfb._sock.send = () => {}; this._rfb._sock.close = () => {}; this._rfb._sock.flush = () => {}; this._rfb._sock.open = function () { this.init(); this._eventHandlers.open(); + self._queueNextPacket(); }; } diff --git a/tests/vnc_playback.html b/tests/vnc_playback.html index d5f94428..b369078a 100644 --- a/tests/vnc_playback.html +++ b/tests/vnc_playback.html @@ -2,8 +2,22 @@ VNC Playback - - + + + + + + +