Commit af1527b2 authored by Joel Martin's avatar Joel Martin

timers: fix over repeated connects.

With tight we can't ever use FBU.rects being 0 as an indication of
a full frame having been drawn.
parent e5d5a7d3
......@@ -894,6 +894,7 @@ init_msg = function() {
response = response.concat(clientEncodings());
response = response.concat(fbUpdateRequests());
timing.fbu_rt_start = (new Date()).getTime();
timing.pixels = 0;
ws.send(response);
/* Start pushing/polling */
......@@ -1044,7 +1045,7 @@ framebufferUpdate = function() {
timing.pixels += FBU.width * FBU.height;
}
if (FBU.rects === 0 || (timing.pixels >= (fb_width * fb_height))) {
if (timing.pixels >= (fb_width * fb_height)) {
if (((FBU.width === fb_width) &&
(FBU.height === fb_height)) ||
(timing.fbu_rt_start > 0)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment