Adding lock around send cursor

This commit is contained in:
Sion Chaudhuri 2013-04-30 01:11:54 -07:00 committed by Michael Jumper
parent bbe552e847
commit a9957e7926

View File

@ -141,9 +141,13 @@ void guac_vnc_cursor(rfbClient* client, int x, int y, int w, int h, int bpp) {
pthread_mutex_unlock(&(gc->send_lock));
pthread_mutex_lock(&(gc->send_lock));
/* Update cursor */
guac_protocol_send_cursor(socket, x, y, cursor_layer, 0, 0, w, h);
pthread_mutex_unlock(&(gc->send_lock));
/* Free surface */
cairo_surface_destroy(surface);
free(buffer);