From 6fbba525a924961083bf2e43bb841bd15671f526 Mon Sep 17 00:00:00 2001 From: runge Date: Sat, 22 Nov 2008 18:36:33 +0000 Subject: x11vnc: x11vnc.desktop file. -reopen, -dhparams, -sslCRL, -setdefer options. -rfbport PROMPT VeNCrypt and TLSVNC SSL/TLS encryption support. Tweaks to choose_delay() algorithm. -ssl ANON anonymouse Diffie-Hellman mode. Fix bugs in certs management. Additions to tray=setpass naive user mode. --- x11vnc/connections.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'x11vnc/connections.c') diff --git a/x11vnc/connections.c b/x11vnc/connections.c index a32f763..2b7d2df 100644 --- a/x11vnc/connections.c +++ b/x11vnc/connections.c @@ -772,7 +772,8 @@ void client_gone(rfbClientPtr client) { */ if ((client->state == RFB_PROTOCOL_VERSION || client->state == RFB_SECURITY_TYPE || - client->state == RFB_AUTHENTICATION) && accepted_client) { + client->state == RFB_AUTHENTICATION || + client->state == RFB_INITIALISATION) && accepted_client) { rfbLog("connect_once: invalid password or early " "disconnect.\n"); rfbLog("connect_once: waiting for next connection.\n"); @@ -3208,7 +3209,7 @@ void adjust_grabs(int grab, int quiet) { } void check_new_clients(void) { - static int last_count = 0; + static int last_count = -1; rfbClientIteratorPtr iter; rfbClientPtr cl; int i, send_info = 0; @@ -3243,7 +3244,9 @@ void check_new_clients(void) { } } - if (client_count == last_count) { + if (last_count == -1) { + last_count = 0; + } else if (client_count == last_count) { return; } -- cgit v1.2.1