Better cleanup in vnc_playback.html

Makes sure the cleanup is also properly exercised as part of the
testing.
This commit is contained in:
Pierre Ossman 2018-01-26 11:07:58 +01:00
parent a92c33174e
commit 609a3fac74
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
},