summaryrefslogtreecommitdiffstats
path: root/x11vnc/scan.c
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2010-04-25 21:05:49 -0400
committerrunge <runge@karlrunge.com>2010-04-25 21:05:49 -0400
commit8d79a63d3c8caca5d0db4827e072f7c773387afa (patch)
tree7e0a75c820cde9bc2d17efa04b47be268a5e400f /x11vnc/scan.c
parent6de3f0bed722384fe21567c13a76843d64491bf4 (diff)
downloadlibtdevnc-8d79a63d3c8caca5d0db4827e072f7c773387afa.tar.gz
libtdevnc-8d79a63d3c8caca5d0db4827e072f7c773387afa.zip
incorporate new ultravnc_dsm_helper.c.
Diffstat (limited to 'x11vnc/scan.c')
-rw-r--r--x11vnc/scan.c3
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;