Use new form of guac_client_plugin_get_client().
This commit is contained in:
parent
aecd6347e3
commit
82694ec45f
@ -137,7 +137,9 @@ void guacd_handle_connection(int fd) {
|
|||||||
|
|
||||||
/* Load and init client */
|
/* Load and init client */
|
||||||
client = guac_client_plugin_get_client(plugin, socket,
|
client = guac_client_plugin_get_client(plugin, socket,
|
||||||
connect->argc, connect->argv);
|
connect->argc, connect->argv,
|
||||||
|
guacd_log_info, guacd_log_error);
|
||||||
|
|
||||||
guac_instruction_free(connect);
|
guac_instruction_free(connect);
|
||||||
|
|
||||||
if (client == NULL) {
|
if (client == NULL) {
|
||||||
@ -151,10 +153,6 @@ void guacd_handle_connection(int fd) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set up logging in client */
|
|
||||||
client->log_info_handler = guacd_log_info;
|
|
||||||
client->log_error_handler = guacd_log_error;
|
|
||||||
|
|
||||||
/* Start client threads */
|
/* Start client threads */
|
||||||
syslog(LOG_INFO, "Starting client");
|
syslog(LOG_INFO, "Starting client");
|
||||||
if (guacd_client_start(client))
|
if (guacd_client_start(client))
|
||||||
|
Loading…
Reference in New Issue
Block a user