diff options
Diffstat (limited to 'src/ats/plugin_ats_ril.c')
-rw-r--r-- | src/ats/plugin_ats_ril.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ats/plugin_ats_ril.c b/src/ats/plugin_ats_ril.c index cd867b95c..78f58e609 100644 --- a/src/ats/plugin_ats_ril.c +++ b/src/ats/plugin_ats_ril.c | |||
@@ -2484,7 +2484,7 @@ GAS_ril_bulk_stop (void *solver) | |||
2484 | * @param solver the solver handle | 2484 | * @param solver the solver handle |
2485 | * @param peer the identity of the peer | 2485 | * @param peer the identity of the peer |
2486 | */ | 2486 | */ |
2487 | static const struct ATS_Address * | 2487 | static void |
2488 | GAS_ril_get_preferred_address (void *solver, | 2488 | GAS_ril_get_preferred_address (void *solver, |
2489 | const struct GNUNET_PeerIdentity *peer) | 2489 | const struct GNUNET_PeerIdentity *peer) |
2490 | { | 2490 | { |
@@ -2514,9 +2514,12 @@ GAS_ril_get_preferred_address (void *solver, | |||
2514 | s->parameters.temperature = s->parameters.temperature_init; | 2514 | s->parameters.temperature = s->parameters.temperature_init; |
2515 | s->parameters.epsilon = s->parameters.epsilon_init; | 2515 | s->parameters.epsilon = s->parameters.epsilon_init; |
2516 | } | 2516 | } |
2517 | return agent->address_inuse; | 2517 | if (NULL != agent->address_inuse) |
2518 | s->env->bandwidth_changed_cb (s->env->cls, | ||
2519 | agent->address_inuse); | ||
2518 | } | 2520 | } |
2519 | 2521 | ||
2522 | |||
2520 | /** | 2523 | /** |
2521 | * Tell solver stop notifying ATS about changes for this peers | 2524 | * Tell solver stop notifying ATS about changes for this peers |
2522 | * | 2525 | * |