mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
Only send sync response if timestamp is changing.
This commit is contained in:
@@ -404,9 +404,11 @@ Guacamole.Client = function(display, tunnel) {
|
|||||||
|
|
||||||
// Send sync response when layers are finished
|
// Send sync response when layers are finished
|
||||||
if (layersToSync == 0) {
|
if (layersToSync == 0) {
|
||||||
|
if (timestamp != currentTimestamp) {
|
||||||
tunnel.sendMessage("sync", timestamp);
|
tunnel.sendMessage("sync", timestamp);
|
||||||
currentTimestamp = timestamp;
|
currentTimestamp = timestamp;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -424,9 +426,11 @@ Guacamole.Client = function(display, tunnel) {
|
|||||||
// If all layers are ready, then we didn't install any hooks.
|
// If all layers are ready, then we didn't install any hooks.
|
||||||
// Send sync message now,
|
// Send sync message now,
|
||||||
if (layersToSync == 0) {
|
if (layersToSync == 0) {
|
||||||
|
if (timestamp != currentTimestamp) {
|
||||||
tunnel.sendMessage("sync", timestamp);
|
tunnel.sendMessage("sync", timestamp);
|
||||||
currentTimestamp = timestamp;
|
currentTimestamp = timestamp;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user