diff options
author | runge <runge> | 2008-11-22 18:36:33 +0000 |
---|---|---|
committer | runge <runge> | 2008-11-22 18:36:33 +0000 |
commit | 6fbba525a924961083bf2e43bb841bd15671f526 (patch) | |
tree | 3ec0cf4b285fb0140294a151b801c91bc78a612e /x11vnc/connections.c | |
parent | 63b98dba790fa9835e970b8502d93258862a9373 (diff) | |
download | libtdevnc-6fbba525a924961083bf2e43bb841bd15671f526.tar.gz libtdevnc-6fbba525a924961083bf2e43bb841bd15671f526.zip |
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.
Diffstat (limited to 'x11vnc/connections.c')
-rw-r--r-- | x11vnc/connections.c | 9 |
1 files changed, 6 insertions, 3 deletions
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; } |