Better cleanup in vnc_playback.html
Makes sure the cleanup is also properly exercised as part of the testing.
This commit is contained in:
parent
a92c33174e
commit
609a3fac74
|
@ -183,6 +183,8 @@ RecordingPlayer.prototype = {
|
||||||
this._rfb._display.flush();
|
this._rfb._display.flush();
|
||||||
} else {
|
} else {
|
||||||
this._running = false;
|
this._running = false;
|
||||||
|
this._rfb._sock._eventHandlers.close({code: 1000, reason: ""});
|
||||||
|
delete this._rfb;
|
||||||
this.onfinish((new Date()).getTime() - this._start_time);
|
this.onfinish((new Date()).getTime() - this._start_time);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue