mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-462: Clear out pending display operations and fully reset when importing state.
This commit is contained in:
@@ -228,11 +228,14 @@ Guacamole.Client = function(tunnel) {
|
|||||||
currentState = state.currentState;
|
currentState = state.currentState;
|
||||||
currentTimestamp = state.currentTimestamp;
|
currentTimestamp = state.currentTimestamp;
|
||||||
|
|
||||||
|
// Cancel any pending display operations/frames
|
||||||
|
display.cancel();
|
||||||
|
|
||||||
// Dispose of all layers
|
// Dispose of all layers
|
||||||
for (key in layers) {
|
for (key in layers) {
|
||||||
index = parseInt(key);
|
index = parseInt(key);
|
||||||
if (index > 0)
|
if (index > 0)
|
||||||
display.dispose(layers[key]);
|
layers[key].dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
layers = {};
|
layers = {};
|
||||||
|
Reference in New Issue
Block a user