GUAC-769: Ensure socket output is handled in a threadsafe manner.

This commit is contained in:
Michael Jumper 2014-07-10 16:49:13 -07:00
parent 7be6bbfeae
commit 8d99c35a86

View File

@ -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);