mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Don't send ready unless layer is ready to draw.
This commit is contained in:
@@ -544,6 +544,12 @@ function VNCClient(display) {
|
||||
|
||||
function sendReady() {
|
||||
|
||||
// If not ready, do not send ready
|
||||
if (background == null || !background.isReady()) {
|
||||
setTimeout(sendReady, 50);
|
||||
return;
|
||||
}
|
||||
|
||||
// Start heartbeat signal
|
||||
var heartbeat = new XMLHttpRequest();
|
||||
heartbeat.open("GET", "ready");
|
||||
|
@@ -122,6 +122,10 @@ function Layer(width, height) {
|
||||
|
||||
};
|
||||
|
||||
display.isReady = function() {
|
||||
return nextUpdateToDraw >= currentUpdate;
|
||||
}
|
||||
|
||||
return display;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user