diff --git a/src/protocols/rdp/guac_handlers.c b/src/protocols/rdp/guac_handlers.c index 0e5b219a..99dafd0d 100644 --- a/src/protocols/rdp/guac_handlers.c +++ b/src/protocols/rdp/guac_handlers.c @@ -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;