From 609a3fac7447f214e90e2052f5f6e73eb4925e40 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 26 Jan 2018 11:07:58 +0100 Subject: [PATCH] Better cleanup in vnc_playback.html Makes sure the cleanup is also properly exercised as part of the testing. --- tests/playback.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/playback.js b/tests/playback.js index 961cac3c..ddce4449 100644 --- a/tests/playback.js +++ b/tests/playback.js @@ -183,6 +183,8 @@ RecordingPlayer.prototype = { this._rfb._display.flush(); } else { this._running = false; + this._rfb._sock._eventHandlers.close({code: 1000, reason: ""}); + delete this._rfb; this.onfinish((new Date()).getTime() - this._start_time); } },