Removing forced sleep between message handling. Can cause excess delays if handle_mes...
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Mon, 28 Nov 2011 10:29:05 +0000 (02:29 -0800)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Mon, 28 Nov 2011 10:29:05 +0000 (02:29 -0800)
src/client.c

index 1a92f88..abaf442 100644 (file)
@@ -135,8 +135,9 @@ void* __guac_client_output_thread(void* data) {
 
             }
 
-            /* Sleep before handling more messages */
-            __guacd_sleep(GUAC_SERVER_MESSAGE_HANDLE_FREQUENCY);
+            /* Do not spin while waiting for old sync */
+            else
+                __guacd_sleep(GUAC_SERVER_MESSAGE_HANDLE_FREQUENCY);
 
         }