diff options
Diffstat (limited to 'x11vnc/scan.c')
-rw-r--r-- | x11vnc/scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/x11vnc/scan.c b/x11vnc/scan.c index 03a37a0..7ef931c 100644 --- a/x11vnc/scan.c +++ b/x11vnc/scan.c @@ -3014,11 +3014,12 @@ static void ping_clients(int tile_cnt) { if (tile_cnt > 0) { last_send = now; } else if (tile_cnt < 0) { + /* negative tile_cnt is -ping case */ if (now >= last_send - tile_cnt) { mark_rect_as_modified(0, 0, 1, 1, 1); last_send = now; } - } else if (now - last_send > 2) { + } else if (now - last_send > 5) { /* Send small heartbeat to client */ mark_rect_as_modified(0, 0, 1, 1, 1); last_send = now; |