GUAC-865: Establish lock before sending size update.

This commit is contained in:
Michael Jumper 2014-11-21 15:46:50 -08:00
parent 2aec59dd23
commit b812cc19a9

View File

@ -469,7 +469,9 @@ int rdp_guac_client_size_handler(guac_client* client, int width, int height) {
freerdp* rdp_inst = guac_client_data->rdp_inst;
/* Send display update */
pthread_mutex_lock(&(guac_client_data->rdp_lock));
guac_rdp_disp_send_size(rdp_inst->context, width, height);
pthread_mutex_unlock(&(guac_client_data->rdp_lock));
#endif
return 0;