bus->listen() and the controller wrappers accept a timeout to wait for callbacks
This commit is contained in:
@@ -126,7 +126,7 @@ static void initiate(private_initiate_mediation_job_t *this)
|
||||
mediation_cfg->get_ref(mediation_cfg);
|
||||
|
||||
if (charon->controller->initiate(charon->controller, mediation_cfg,
|
||||
NULL, (controller_cb_t)initiate_callback, this) != SUCCESS)
|
||||
NULL, (controller_cb_t)initiate_callback, this, 0) != SUCCESS)
|
||||
{
|
||||
mediation_cfg->destroy(mediation_cfg);
|
||||
mediated_cfg->destroy(mediated_cfg);
|
||||
|
||||
@@ -66,7 +66,7 @@ METHOD(job_t, execute, void,
|
||||
charon->controller->initiate(charon->controller,
|
||||
peer_cfg->get_ref(peer_cfg),
|
||||
child_cfg->get_ref(child_cfg),
|
||||
NULL, NULL);
|
||||
NULL, NULL, 0);
|
||||
break;
|
||||
case ACTION_ROUTE:
|
||||
DBG1(DBG_JOB, "start action: route '%s'", name);
|
||||
|
||||
Reference in New Issue
Block a user