}
- /* 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);
}
return NULL;
}
+ /* Reset guac_error and guac_error_message (client handlers are not
+ * guaranteed to set these) */
+ guac_error = GUAC_STATUS_SUCCESS;
+ guac_error_message = NULL;
+
/* Call handler, stop on error */
if (guac_client_handle_instruction(client, instruction) < 0) {