Migrated to new function defs with timeouts.
This commit is contained in:
parent
d4d2ba3af3
commit
0db81b73ac
@ -135,7 +135,7 @@ void* __guac_client_input_thread(void* data) {
|
|||||||
guac_instruction instruction;
|
guac_instruction instruction;
|
||||||
|
|
||||||
/* Guacamole client input loop */
|
/* Guacamole client input loop */
|
||||||
while (client->state == RUNNING && guac_read_instruction(io, &instruction) > 0) {
|
while (client->state == RUNNING && guac_read_instruction(io, GUAC_USEC_TIMEOUT, &instruction) > 0) {
|
||||||
|
|
||||||
/* Call handler, stop on error */
|
/* Call handler, stop on error */
|
||||||
if (guac_client_handle_instruction(client, &instruction) < 0) {
|
if (guac_client_handle_instruction(client, &instruction) < 0) {
|
||||||
|
@ -68,7 +68,7 @@ void* start_client_thread(void* data) {
|
|||||||
guac_log_info("Spawning client");
|
guac_log_info("Spawning client");
|
||||||
|
|
||||||
/* Load and start client */
|
/* Load and start client */
|
||||||
client = guac_get_client(thread_data->fd);
|
client = guac_get_client(thread_data->fd, GUAC_USEC_TIMEOUT);
|
||||||
|
|
||||||
if (client == NULL) {
|
if (client == NULL) {
|
||||||
guac_log_error("Client retrieval failed");
|
guac_log_error("Client retrieval failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user