GUAC-769: Ensure socket output is handled in a threadsafe manner.
This commit is contained in:
parent
7be6bbfeae
commit
8d99c35a86
@ -186,6 +186,9 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ensure main socket is threadsafe */
|
||||||
|
guac_socket_require_threadsafe(socket);
|
||||||
|
|
||||||
/* Send initial name */
|
/* Send initial name */
|
||||||
guac_protocol_send_name(socket, client_data->hostname);
|
guac_protocol_send_name(socket, client_data->hostname);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user