From 74150f373edbd650fd81c919c727950995c45cbd Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 13 Mar 2011 14:52:06 -0700 Subject: [PATCH] Removed sleep - libguac now handles sleeping automatically --- protocols/vnc/configure.in | 1 - protocols/vnc/src/vnc_client.c | 22 ---------------------- 2 files changed, 23 deletions(-) diff --git a/protocols/vnc/configure.in b/protocols/vnc/configure.in index 1020406e..dd02b564 100644 --- a/protocols/vnc/configure.in +++ b/protocols/vnc/configure.in @@ -52,7 +52,6 @@ AC_CHECK_HEADERS([stdlib.h string.h syslog.h guacamole/client.h guacamole/guacio # Checks for library functions. AC_FUNC_MALLOC -AC_CHECK_FUNCS([nanosleep]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT diff --git a/protocols/vnc/src/vnc_client.c b/protocols/vnc/src/vnc_client.c index 3ad50459..67229685 100644 --- a/protocols/vnc/src/vnc_client.c +++ b/protocols/vnc/src/vnc_client.c @@ -217,23 +217,6 @@ void guac_vnc_cut_text(rfbClient* client, const char* text, int textlen) { } -void vnc_guac_client_sleep(int millis) { - -#ifdef HAVE_NANOSLEEP - struct timespec sleep_period; - - sleep_period.tv_sec = 0; - sleep_period.tv_nsec = millis * 1000000L; - - nanosleep(&sleep_period, NULL); -#elif defined(__MINGW32__) - Sleep(millis) -#else -#warning No sleep/nanosleep function available. VNC client may not perform as expected. Consider editing the vnc_client.c to add support for your platform. -#endif - -} - int vnc_guac_client_handle_messages(guac_client* client) { int wait_result; @@ -253,11 +236,6 @@ int vnc_guac_client_handle_messages(guac_client* client) { return 1; } - /* Wait before returning ... don't want to handle - * too many server messages. */ - - vnc_guac_client_sleep(50); - } return 0;