[go: nahoru, domu]

Skip to content

Commit

Permalink
timers: fix over repeated connects.
Browse files Browse the repository at this point in the history
With tight we can't ever use FBU.rects being 0 as an indication of
a full frame having been drawn.
  • Loading branch information
kanaka committed Jun 28, 2012
1 parent e5d5a7d commit af1527b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/rfb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit af1527b

Please sign in to comment.