mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +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() {
|
function sendReady() {
|
||||||
|
|
||||||
|
// If not ready, do not send ready
|
||||||
|
if (background == null || !background.isReady()) {
|
||||||
|
setTimeout(sendReady, 50);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Start heartbeat signal
|
// Start heartbeat signal
|
||||||
var heartbeat = new XMLHttpRequest();
|
var heartbeat = new XMLHttpRequest();
|
||||||
heartbeat.open("GET", "ready");
|
heartbeat.open("GET", "ready");
|
||||||
|
@@ -122,6 +122,10 @@ function Layer(width, height) {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
display.isReady = function() {
|
||||||
|
return nextUpdateToDraw >= currentUpdate;
|
||||||
|
}
|
||||||
|
|
||||||
return display;
|
return display;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user