From 0a3a23f26e302db85bf2174143dd8e1f2302ea61 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 17 Mar 2011 14:04:23 -0700 Subject: [PATCH] Temporary fix for spinning while waiting for sync --- libguac/src/client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libguac/src/client.c b/libguac/src/client.c index 247fc4b0..e2f789ed 100644 --- a/libguac/src/client.c +++ b/libguac/src/client.c @@ -376,6 +376,10 @@ void* __guac_client_output_thread(void* data) { guac_flush(io); } + /* If sync threshold exceeded, don't spin waiting for resync */ + else + guac_client_sleep(GUAC_SERVER_MESSAGE_HANDLE_FREQUENCY); + } /* If no message handler, just sleep until next sync ping */