Adding lock around send cursor
This commit is contained in:
parent
bbe552e847
commit
a9957e7926
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user