From: Matthias Wachs Date: Tue, 19 Nov 2013 13:34:29 +0000 (+0000) Subject: notify only once X-Git-Tag: initial-import-from-subversion-38251~6012 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7890a308739d2e4714ec5b9f1371da377c59e6b6;p=oweals%2Fgnunet.git notify only once --- diff --git a/src/ats/libgnunet_plugin_ats_proportional.c b/src/ats/libgnunet_plugin_ats_proportional.c index 6118329b6..ab259c118 100644 --- a/src/ats/libgnunet_plugin_ats_proportional.c +++ b/src/ats/libgnunet_plugin_ats_proportional.c @@ -879,16 +879,16 @@ distribute_bandwidth_in_network (struct GAS_PROPORTIONAL_Handle *s, if (NULL != s->env->info_cb) s->env->info_cb(s->env->info_cb_cls, GAS_OP_SOLVE_STOP, GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); + if (NULL != s->env->info_cb) + s->env->info_cb(s->env->info_cb_cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_START, + GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); for (i = 0; i < s->network_count; i++) { - if (NULL != s->env->info_cb) - s->env->info_cb(s->env->info_cb_cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_START, - GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); propagate_bandwidth(s, &s->network_entries[i], address_except); - if (NULL != s->env->info_cb) - s->env->info_cb(s->env->info_cb_cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_STOP, - GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); } + if (NULL != s->env->info_cb) + s->env->info_cb(s->env->info_cb_cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_STOP, + GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); } }