GUACAMOLE-462: Clear out pending display operations and fully reset when importing state.
This commit is contained in:
1 parent
a27bd2694a
commit
d4899f102f
1 file changed
+4
-1
@@ -228,11 +228,14 @@ Guacamole.Client = function(tunnel) {
|
||||
currentState = state.currentState;
|
||||
currentTimestamp = state.currentTimestamp;
|
||||
|
||||
// Cancel any pending display operations/frames
|
||||
display.cancel();
|
||||
|
||||
// Dispose of all layers
|
||||
for (key in layers) {
|
||||
index = parseInt(key);
|
||||
if (index > 0)
|
||||
display.dispose(layers[key]);
|
||||
layers[key].dispose();
|
||||
}
|
||||
|
||||
layers = {};
|
||||
|
||||
Reference in new issue
Block a user