GUAC-561: Send CLIENT_TIMEOUT if client is not responding.

This commit is contained in:
Michael Jumper 2014-03-22 15:13:41 -07:00
parent 26b5a0c21e
commit 894229ded2

View File

@ -124,9 +124,15 @@ void* __guacd_client_input_thread(void* data) {
/* Stop on error */ /* Stop on error */
if (instruction == NULL) { if (instruction == NULL) {
guacd_client_log_guac_error(client,
"Error reading instruction"); if (guac_error == GUAC_STATUS_INPUT_TIMEOUT)
guac_client_stop(client); guac_client_abort(client, GUAC_PROTOCOL_STATUS_CLIENT_TIMEOUT, "Client is not responding.");
else {
guacd_client_log_guac_error(client, "Error reading instruction");
guac_client_stop(client);
}
return NULL; return NULL;
} }