Removed sleep - libguac now handles sleeping automatically
This commit is contained in:
parent
4044b61f56
commit
74150f373e
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user