Set guac_error* before calling client handlers
This commit is contained in:
parent
0daf07a742
commit
d1b4ce00e1
@ -171,6 +171,11 @@ void* __guac_client_input_thread(void* data) {
|
|||||||
return NULL;
|
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 */
|
/* Call handler, stop on error */
|
||||||
if (guac_client_handle_instruction(client, instruction) < 0) {
|
if (guac_client_handle_instruction(client, instruction) < 0) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user